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:
parent
3d291032cf
commit
e517a0b5e4
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue