mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-11 14:30:35 +00:00
Fix Performance/StringIdentifierArgument cop (#28399)
This commit is contained in:
@@ -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 = {})
|
||||
|
||||
Reference in New Issue
Block a user