Module: MongoModel::DocumentExtensions::Scopes

Extended by:
ActiveSupport::Concern
Included in:
MongoModel::Document, MapReduce
Defined in:
lib/mongomodel/document/scopes.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#initializeObject


8
9
10
11
# File 'lib/mongomodel/document/scopes.rb', line 8

def initialize(*)
  self.attributes = current_scope.options_for_create if respond_to?(:attributes=)
  super
end