class RuboCop::Cop::Rails::Delegate
def on_def(node)
def on_def(node) method_name, args, body = *node return unless trivial_delegate?(method_name, args, body) return if private_or_protected_delegation(node) add_offense(node, :keyword, MSG) end
def on_def(node) method_name, args, body = *node return unless trivial_delegate?(method_name, args, body) return if private_or_protected_delegation(node) add_offense(node, :keyword, MSG) end