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