mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Update rolify and cancancan
This commit is contained in:
parent
9fbd2e9618
commit
40a48e1e7e
6 changed files with 359 additions and 352 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class Role < ActiveRecord::Base
|
||||
belongs_to :resource, polymorphic: true
|
||||
has_and_belongs_to_many :users
|
||||
has_and_belongs_to_many :users, join_table: :users_roles
|
||||
|
||||
scopify
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ class User < ActiveRecord::Base
|
|||
|
||||
devise(*devise_modules)
|
||||
|
||||
has_and_belongs_to_many :roles
|
||||
has_many :openids
|
||||
|
||||
attr_accessor :login
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue