instance method
_merge_attributes
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v4.2.9 PrivateSignature
_merge_attributes(attr_names)
No documentation comment.
Parameters
-
attr_namesreq
Source
# File activemodel/lib/active_model/validations/with.rb, line 5
def _merge_attributes(attr_names)
options = attr_names.extract_options!
options.merge(:attributes => attr_names.flatten)
end
Defined in activemodel/lib/active_model/validations/with.rb line 5
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations::HelperMethods