class RuboCop::Cop::Rails::LexicallyScopedActionFilter
def message(methods, parent)
-
(String)
-
Parameters:
-
parent
(RuboCop::AST::Node
) -- -
methods
(Array
) --
def message(methods, parent) if methods.size == 1 format(MSG, action: "`#{methods[0]}` is", type: parent.type) else format(MSG, action: "`#{methods.join('`, `')}` are", type: parent.type) end end