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

deprecate usage of AASM.aasm_initial_state= (setter method)

This commit is contained in:
Thorsten Böttger 2013-11-30 21:29:15 +01:00
parent a4c39d5ade
commit 15a8db6db0

View file

@ -45,8 +45,9 @@ module AASM
end
end
# deprecated
# deprecated, remove this method in v4.0.0
def aasm_initial_state=(state)
warn ".aasm_initial_state= is deprecated and will be removed in version 4.0.0"
AASM::StateMachine[self].initial_state = state
end