module AASM::Persistence::DynamoidPersistence::InstanceMethods
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 column, but does not persist it to the database
def aasm_write_state_without_persistence(state, name=:default) write_attribute(self.class.aasm(name).attribute_name, state.to_s) end