Module: Workflow::ActiveRecordInstanceMethods
- Defined in:
- lib/workflow.rb
Instance Method Summary collapse
- #load_workflow_state ⇒ Object
-
#persist_workflow_state(new_value) ⇒ Object
On transition the new workflow state is immediately saved in the database.
Instance Method Details
#load_workflow_state ⇒ Object
265 266 267 |
# File 'lib/workflow.rb', line 265 def load_workflow_state read_attribute(self.class.workflow_column) end |
#persist_workflow_state(new_value) ⇒ Object
On transition the new workflow state is immediately saved in the database.
271 272 273 |
# File 'lib/workflow.rb', line 271 def persist_workflow_state(new_value) update_attribute self.class.workflow_column, new_value end |