Module: Workflow::Adapter::ActiveRecord

Defined in:
lib/workflow/adapters/active_record.rb

Defined Under Namespace

Modules: InstanceMethods, Scopes

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



4
5
6
7
8
# File 'lib/workflow/adapters/active_record.rb', line 4

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