Module: ActsAsLiving::EnumDefiner

Defined in:
lib/acts_as_living/enum_definer.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.call(klass) ⇒ Object



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

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

    enum stage: stages_enum
  end
end