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

aasm_after_update -> aasm_persist

This commit is contained in:
Scott Barron 2008-01-08 09:41:52 -05:00
parent 8697e97b7d
commit 4fd58db233

View file

@ -49,8 +49,8 @@ module AASM
private private
def aasm_current_state=(state) def aasm_current_state=(state)
@aasm_current_state = state @aasm_current_state = state
if self.respond_to?(:aasm_after_update) || self.private_methods.include?('aasm_after_update') if self.respond_to?(:aasm_persist) || self.private_methods.include?('aasm_persist')
aasm_after_update aasm_persist
end end
end end
end end