Module: Workflow::Adapter::Remodel::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#load_workflow_stateObject



5
6
7
# File 'lib/workflow/adapters/remodel.rb', line 5

def load_workflow_state
  send(self.class.workflow_column)
end

#persist_workflow_state(new_value) ⇒ Object



9
10
11
# File 'lib/workflow/adapters/remodel.rb', line 9

def persist_workflow_state(new_value)
  update(self.class.workflow_column => new_value)
end