Fix Performance/StringIdentifierArgument
cop (#28399)
This commit is contained in:
parent
2bd8d343cf
commit
1820bad646
6 changed files with 21 additions and 21 deletions
|
@ -110,7 +110,7 @@ module ApplicationHelper
|
|||
def can?(action, record)
|
||||
return false if record.nil?
|
||||
|
||||
policy(record).public_send("#{action}?")
|
||||
policy(record).public_send(:"#{action}?")
|
||||
end
|
||||
|
||||
def fa_icon(icon, attributes = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue