module StoreModel::NestedAttributes
Contains methods for working with nested StoreModel::Model
attributes.
Private Instance Methods
assign_nested_attributes_for_collection_association(association, attributes)
click to toggle source
# File lib/store_model/nested_attributes.rb, line 30 def assign_nested_attributes_for_collection_association(association, attributes) attributes = attributes.values if attributes.is_a?(Hash) send "#{association}=", attributes end