2017-05-26 11:23:32 +08:00
|
|
|
class Authentication < ActiveRecord::Base
|
|
|
|
|
attr_accessible :level, :permissions
|
|
|
|
|
serialize :permissions, Array
|
|
|
|
|
has_and_belongs_to_many :users
|
2017-05-27 14:21:31 +08:00
|
|
|
# has_many :users_authenticationses
|
|
|
|
|
# has_many :users, :through => :users_authenticationses
|
|
|
|
|
|
2017-05-26 11:23:32 +08:00
|
|
|
end
|