Sha256: e921e249ce9553507b74e78a96fbc1d380251defec34caaaed5e26a171b00130
Contents?: true
Size: 684 Bytes
Versions: 9
Compression:
Stored size: 684 Bytes
Contents
module ActiveData module ActiveRecord module NestedAttributes extend ActiveSupport::Concern def accepts_nested_attributes_for(*attr_names) options = attr_names.extract_options! active_data_associations, active_record_association = attr_names.partition do |association_name| reflect_on_association(association_name).is_a?(ActiveData::Model::Associations::Reflections::Base) end ActiveData::Model::Associations::NestedAttributes::NestedAttributesMethods .accepts_nested_attributes_for(self, *active_data_associations, options.dup) super(*active_record_association, options.dup) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems