class method
self.attribute_names
Ruby on Rails 8.1.2
Since v8.1.2 PrivateSignature
self.attribute_names(model, name)
No documentation comment.
Parameters
-
modelreq -
namereq
Source
# 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
Defined in activerecord/lib/active_record/dynamic_matchers.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DynamicMatchers::Method