method
_merge_attributes
v4.2.9 -
Show latest stable
- Class:
ActiveModel::Validations::HelperMethods
_merge_attributes(attr_names)private
No documentation available.
# File activemodel/lib/active_model/validations/with.rb, line 5
def _merge_attributes(attr_names)
options = attr_names.extract_options!.symbolize_keys
attr_names.flatten!
options[:attributes] = attr_names
options
end