1
0
Fork 0
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:
Jennifer Hwang 2020-01-19 10:15:15 -08:00 committed by Anil Kumar Maurya
parent 1f3015de0e
commit 65102b6097

View file

@ -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