Module: Mongoid::Kraken::ClassMethods
- Defined in:
- lib/mongoid/kraken.rb
Instance Method Summary collapse
- #instantiate(attrs = nil) ⇒ Object
- #kraken_class ⇒ Object
- #kraken_sucker_class ⇒ Object
- #kraken_tentacle_class ⇒ Object
Instance Method Details
#instantiate(attrs = nil) ⇒ Object
17 18 19 |
# File 'lib/mongoid/kraken.rb', line 17 def instantiate(attrs = nil) super(attrs).instance_eval { summon_the_kraken! } end |
#kraken_class ⇒ Object
21 22 23 |
# File 'lib/mongoid/kraken.rb', line 21 def kraken_class Mongoid::Kraken::Kraken end |