class RuboCop::Cop::Rails::Delegate

def trivial_delegate?(def_node)

def trivial_delegate?(def_node)
  method_name, args, body = *def_node
  delegate?(def_node) &&
    method_name_matches?(method_name, body) &&
    arguments_match?(args, body)
end