class ActiveRecord::DynamicMatchers::Method

def signature

to prevent errors, we start each param name with `_`.
The parameters in the signature may have reserved Ruby words, in order
def signature
  attribute_names.map { |name| "_#{name}" }.join(", ")
end