Skip to content

Commit

Permalink
Send resource as keyword argument in resource_name
Browse files Browse the repository at this point in the history
This was always a better way, but in Foreman 3.10 the args and kwargs
handling was made more explicit.
  • Loading branch information
ekohl committed Mar 21, 2024
1 parent 38676da commit cc61569
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/ui_ansible_roles_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class UiAnsibleRolesController < ::Api::V2::BaseController
def resource_name(resource = 'AnsibleRole')
super resource
def resource_name(resource: 'AnsibleRole')
super
end

def index
Expand Down

0 comments on commit cc61569

Please sign in to comment.