Module: MongoMapper::Plugins::Serialization::ClassMethods

Defined in:
lib/mongo_mapper/plugins/serialization.rb

Instance Method Summary collapse

Instance Method Details

#from_json(json) ⇒ Object



69
70
71
# File 'lib/mongo_mapper/plugins/serialization.rb', line 69

def from_json(json)
  self.new(ActiveSupport::JSON.decode(json))
end