Module: ArDocStore::Model::InstanceMethods
- Defined in:
- lib/ar_doc_store/model.rb
Instance Method Summary collapse
- #write_default_store_attribute(key, default_value) ⇒ Object
- #write_store_attribute(store_attribute, key, value) ⇒ Object
Instance Method Details
#write_default_store_attribute(key, default_value) ⇒ Object
18 19 20 |
# File 'lib/ar_doc_store/model.rb', line 18 def write_default_store_attribute(key, default_value) data[key] = default_value end |
#write_store_attribute(store_attribute, key, value) ⇒ Object
13 14 15 16 |
# File 'lib/ar_doc_store/model.rb', line 13 def write_store_attribute(store_attribute, key, value) public_send "#{key}_will_change!" super(store_attribute, key, value) end |