Add and apply Style/ArgumentsForwarding rule
We were using generic names like `args` and `options` which don't really add anything to `*` or `**` because Ruby required us to. That's no longer the case in Ruby 3.2, so we can simplify the code a bit.
This commit is contained in:
@@ -6,8 +6,8 @@ class Admin::TableActionsComponent < ApplicationComponent
|
||||
@options = options
|
||||
end
|
||||
|
||||
def action(action_name, **args)
|
||||
render Admin::ActionComponent.new(action_name, record, "aria-label": true, **args)
|
||||
def action(action_name, **)
|
||||
render Admin::ActionComponent.new(action_name, record, "aria-label": true, **)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user