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

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

Instance Method Summary collapse

Instance Method Details

#from_json(json) ⇒ Object



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

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