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:
parent
a4c39d5ade
commit
15a8db6db0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue