# Writes <tt>state</tt> to the state column and persists it to the database # using update_attribute (which bypasses validation) # # foo = Foo.find(1) # foo.aasm_current_state # => :opened # foo.close! # foo.aasm_current_state # => :closed # Foo.find(1).aasm_current_state # => :closed # # NOTE: intended to be called from an event old_value = (self) (self, state) unless self(false) (self, old_value) return false end true end end

