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
1 changed files with 1 additions and 1 deletions

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