Class: ActiveMongo::Base
- Inherits:
-
Object
- Object
- ActiveMongo::Base
- Extended by:
- ActiveModel::Callbacks, AttrAccessible::ClassMethods, HasMany::ClassMethods, Indexes::ClassMethods, NamedScopes::ClassMethods
- Includes:
- ActiveModel::Callbacks, ActiveModel::Conversion, ActiveModel::Validations, HasMany::InstanceMethods
- Defined in:
- lib/active_mongo_start.rb
Class Attribute Summary collapse
-
.scope ⇒ Object
Returns the value of attribute scope.
Class Method Summary collapse
Methods included from Indexes::ClassMethods
Methods included from AttrAccessible::ClassMethods
attr_accessible, attr_accessible_get, attr_clear, attr_clear_get
Methods included from NamedScopes::ClassMethods
internal_named_scopes_get, internal_named_scopes_set, named_scope, named_scope_hit
Methods included from HasMany::ClassMethods
has_many, internal_has_manies_get, internal_has_manies_set
Methods included from HasMany::InstanceMethods
Class Attribute Details
.scope ⇒ Object
Returns the value of attribute scope.
45 46 47 |
# File 'lib/active_mongo_start.rb', line 45 def scope @scope end |
Class Method Details
.extended(klass) ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lib/active_mongo_start.rb', line 47 def self.extended(klass) class << klass alias __old_name name def name(*args, &blk) return @name || self.__old_name end end end |