1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

[Jon] increased the scope of active_record persistence to save the whole model

This commit is contained in:
Edgecase Pair One 2008-10-03 10:15:35 -04:00
parent 3d291032cf
commit e517a0b5e4

View file

@ -188,7 +188,8 @@ module AASM
#
# 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