1
0
Fork 0
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:
Denny Mueller 2019-04-23 18:33:47 +02:00 committed by Anil Kumar Maurya
parent b7342f8243
commit 05a0f37e0f

View file

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