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