mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Update sample code for defining custom column names.
This commit is contained in:
parent
1f3015de0e
commit
65102b6097
1 changed files with 2 additions and 2 deletions
|
@ -1065,11 +1065,11 @@ this by defining your favorite column name, using `:column` like this:
|
|||
class Job < ActiveRecord::Base
|
||||
include AASM
|
||||
|
||||
aasm column: 'my_state' do
|
||||
aasm column: :my_state do
|
||||
...
|
||||
end
|
||||
|
||||
aasm :another_state_machine, column: 'second_state' do
|
||||
aasm :another_state_machine, column: :second_state do
|
||||
...
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue