mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
move abstract_class after state machine
This commit is contained in:
parent
b7342f8243
commit
05a0f37e0f
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,4 @@
|
|||
class Base < ActiveRecord::Base
|
||||
self.abstract_class = true
|
||||
self.table_name = 'users'
|
||||
|
||||
include AASM
|
||||
|
||||
aasm column: 'status' do
|
||||
|
@ -16,6 +13,9 @@ class Base < ActiveRecord::Base
|
|||
transitions from: :active, to: :inactive
|
||||
end
|
||||
end
|
||||
|
||||
self.abstract_class = true
|
||||
self.table_name = 'users'
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue