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

Pass the state into aasm_write_state

This commit is contained in:
Scott Barron 2008-02-21 11:15:40 -05:00
parent 91794f70fe
commit 03780617a1

View file

@ -56,7 +56,7 @@ module AASM
def aasm_current_state=(state)
@aasm_current_state = state
if self.respond_to?(:aasm_write_state) || self.private_methods.include?('aasm_write_state')
aasm_write_state
aasm_write_state(state)
end
end
end