Module: MongoMapper::Plugins::Sci

Extended by:
ActiveSupport::Concern
Included in:
Document, EmbeddedDocument
Defined in:
lib/mongo_mapper/plugins/sci.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



30
31
32
33
# File 'lib/mongo_mapper/plugins/sci.rb', line 30

def initialize(*args)
  super
  write_key :_type, self.class.name if self.class.key?(:_type)
end