module StoreModel::Base

ActiveRecord::Base patch with parent tracking support

Public Instance Methods

_read_attribute(*) click to toggle source
Calls superclass method
# File lib/store_model/ext/active_record/base.rb, line 10
def _read_attribute(*)
  super.tap do |attribute|
    assign_parent_to_store_model_relation(attribute)
  end
end
_write_attribute(*) click to toggle source
Calls superclass method
# File lib/store_model/ext/active_record/base.rb, line 16
def _write_attribute(*)
  super.tap do |attribute|
    assign_parent_to_store_model_relation(attribute)
  end
end