Module: WorkflowActiverecord

Defined in:
lib/workflow-activerecord.rb,
lib/workflow-activerecord/version.rb

Defined Under Namespace

Modules: InstanceMethods, Scopes

Constant Summary collapse

VERSION =
"6.0.1"

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



6
7
8
9
10
11
# File 'lib/workflow-activerecord.rb', line 6

def self.included(klass)
  klass.send :include, ::Workflow
  klass.send :include, InstanceMethods
  klass.send :extend, Scopes
  klass.before_validation :write_initial_state
end