Module: Workflow::MongoidInstanceMethods
- Defined in:
- lib/workflow_on_mongoid/workflow.rb
Instance Method Summary collapse
Instance Method Details
#load_workflow_state ⇒ Object
5 6 7 |
# File 'lib/workflow_on_mongoid/workflow.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_on_mongoid/workflow.rb', line 9 def persist_workflow_state(new_value) self.update_attribute(self.class.workflow_column, new_value) end |