Module: Multiflow::Persistence::None
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/multiflow/persistence/none.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#load_from_persistence(machine) ⇒ Object
12 13 14 |
# File 'lib/multiflow/persistence/none.rb', line 12 def load_from_persistence(machine) instance_variable_get :"@state_#{machine.state_column}" end |
#save_to_persistence(machine, new_state, options) ⇒ Object
16 17 18 |
# File 'lib/multiflow/persistence/none.rb', line 16 def save_to_persistence(machine, new_state, ) instance_variable_set :"@state_#{machine.state_column}", new_state end |