Module: Mongoid::Extras
- Defined in:
- lib/mongoid/extras.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/mongoid/extras.rb', line 4 def self.included(base) base.class_eval do extend ClassMethods class_inheritable_accessor :cached, :enslaved self.cached = false self.enslaved = false delegate :cached?, :enslaved?, :to => "self.class" end end |