Class: PublicActivity::ORM::MongoMapper::Activity::SymbolHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/public_activity/orm/mongo_mapper/activity.rb

Class Method Summary collapse

Class Method Details

.from_mongo(value) ⇒ Object


16
17
18
# File 'lib/public_activity/orm/mongo_mapper/activity.rb', line 16

def self.from_mongo(value)
  value.symbolize_keys unless value.nil?
end