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
269 270 271 |
# File 'lib/workflow.rb', line 269 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.
275 276 277 |
# File 'lib/workflow.rb', line 275 def persist_workflow_state(new_value) update_attribute self.class.workflow_column, new_value end |