Class: MassiveRecord::ORM::Coders::JSON
- Inherits:
-
Object
- Object
- MassiveRecord::ORM::Coders::JSON
- Defined in:
- lib/massive_record/orm/coders/json.rb
Instance Method Summary collapse
Instance Method Details
#dump(object) ⇒ Object
7 8 9 |
# File 'lib/massive_record/orm/coders/json.rb', line 7 def dump(object) ActiveSupport::JSON.encode(object) end |
#load(json) ⇒ Object
11 12 13 |
# File 'lib/massive_record/orm/coders/json.rb', line 11 def load(json) ActiveSupport::JSON.decode(json) end |