geeks

Module: Workflow::ActiveRecordInstanceMethods

Defined in:
lib/workflow.rb

Instance Method Summary

Instance Method Details

- (Object) load_workflow_state



293
294
295
# File 'lib/workflow.rb', line 293

def load_workflow_state
  read_attribute(self.class.workflow_column)
end

- (Object) persist_workflow_state(new_value)

On transition the new workflow state is immediately saved in the database.



299
300
301
# File 'lib/workflow.rb', line 299

def persist_workflow_state(new_value)
  update_attribute self.class.workflow_column, new_value
end