Module: Mongoid::Kraken::ClassMethods

Defined in:
lib/mongoid/kraken.rb

Instance Method Summary collapse

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_classObject



21
22
23
# File 'lib/mongoid/kraken.rb', line 21

def kraken_class
  Mongoid::Kraken::Kraken
end

#kraken_sucker_classObject



29
30
31
# File 'lib/mongoid/kraken.rb', line 29

def kraken_sucker_class
  Mongoid::Kraken::Sucker
end

#kraken_tentacle_classObject



25
26
27
# File 'lib/mongoid/kraken.rb', line 25

def kraken_tentacle_class
  Mongoid::Kraken::Tentacle
end