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
#initialize ⇒ Object
8 9 10 11 |
# File 'lib/mongomodel/document/scopes.rb', line 8 def initialize(*) self.attributes = current_scope. if respond_to?(:attributes=) super end |