0
0
Fork 0

Fix Performance/StringIdentifierArgument cop (#28399)

This commit is contained in:
Matt Jankowski 2023-12-18 05:26:09 -05:00 committed by GitHub
parent 2bd8d343cf
commit 1820bad646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 21 deletions

View file

@ -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 = {})