method
attribute_names
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::DynamicMatchers::Method
attribute_names(model, name)private
No documentation available.
# File activerecord/lib/active_record/dynamic_matchers.rb, line 51
def attribute_names(model, name)
attribute_names = name.match(pattern)[1].split("_and_")
attribute_names.map! { |name| model.attribute_aliases[name] || name }
end