module StoreModel::Attributes

ActiveModel::Attributes patch with parent tracking support

Private Instance Methods

attribute(*) click to toggle source
Calls superclass method
# File lib/store_model/ext/active_model/attributes.rb, line 12
def attribute(*)
  super.tap do |value|
    assign_parent_to_store_model_relation(value)
  end
end
write_attribute(*) click to toggle source
Calls superclass method
# File lib/store_model/ext/active_model/attributes.rb, line 18
def write_attribute(*)
  super.tap do |value|
    assign_parent_to_store_model_relation(value)
  end
end