Module: ActsAsLiving::MethodsDefiner

Defined in:
lib/acts_as_living/methods_definer.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.call(klass) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/acts_as_living/methods_definer.rb', line 4

def self.call(klass)
  klass.class_eval do
    extend ClassMethods
    include InstanceMethods

    @stage_keys.each(&method(:define_stage_queries))
    @phases.each(&method(:define_phase_queries))
  end
end