Module: ArDocStore::Storage::InstanceMethods
- Defined in:
- lib/ar_doc_store/storage.rb
Instance Method Summary collapse
Instance Method Details
#json_column ⇒ Object
17 18 19 |
# File 'lib/ar_doc_store/storage.rb', line 17 def json_column self.class.json_column end |
#read_attribute(name) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/ar_doc_store/storage.rb', line 29 def read_attribute(name) if is_stored_attribute?(name) read_store_attribute json_column, attribute_name_from_foreign_key(name) else super end end |
#write_attribute(name, value) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/ar_doc_store/storage.rb', line 21 def write_attribute(name, value) if is_stored_attribute?(name) write_store_attribute json_column, attribute_name_from_foreign_key(name), value else super end end |