Skip to content

Commit

Permalink
[Jon] increased the scope of active_record persistence to save the wh…
Browse files Browse the repository at this point in the history
…ole model
  • Loading branch information
Edgecase Pair One committed Oct 3, 2008
1 parent 3d29103 commit e517a0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/persistence/active_record_persistence.rb
Expand Up @@ -188,7 +188,8 @@ module WriteState
#
# NOTE: intended to be called from an event
def aasm_write_state(state)
update_attribute(self.class.aasm_column, state.to_s)
write_attribute(self.class.aasm_column, state.to_s)
self.save!
end
end

Expand Down

0 comments on commit e517a0b

Please sign in to comment.