mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-11 06:20:42 +00:00
Autofix Rubocop remaining Layout rules (#23679)
This commit is contained in:
@@ -105,6 +105,7 @@ module ApplicationHelper
|
||||
|
||||
def can?(action, record)
|
||||
return false if record.nil?
|
||||
|
||||
policy(record).public_send("#{action}?")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user