module AASM::Persistence::ORM
def aasm_write_state_without_persistence(state, name=:default)
Foo.find(1).aasm.current_state # => :closed
foo.aasm.current_state # => :closed
foo.save
Foo.find(1).aasm.current_state # => :opened
foo.aasm.current_state # => :closed
foo.close
foo.aasm.current_state # => :opened
foo = Foo.find(1)
Writes state to the state field, but does not persist it to the database
def aasm_write_state_without_persistence(state, name=:default) aasm_write_state_attribute(state, name) end