Pass the state into aasm_write_state
This commit is contained in:
parent
91794f70fe
commit
03780617a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue