module AASM::Persistence::RedisPersistence::InstanceMethods
def aasm_write_state_without_persistence(state, name=:default)
Foo[1].aasm.current_state # => :closed
foo.aasm.current_state # => :closed
foo.save
Foo[1].aasm.current_state # => :opened
foo.aasm.current_state # => :closed
foo.close
foo.aasm.current_state # => :opened
foo = Foo[1]
it does not operate like an AR model and does not know how to postpone changes.
With Redis::Objects it's not possible to skip persisting - it's not an ORM,
(but actually it still does)
Writes state to the state column, but does not persist it to the database
def aasm_write_state_without_persistence(state, name=:default) aasm_write_state(state, name) end