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