update rolify
This commit is contained in:
parent
3dc7aaf4ea
commit
786d2c7985
7 changed files with 24 additions and 24 deletions
|
|
@ -1,5 +1,5 @@
|
|||
class Role < ActiveRecord::Base
|
||||
has_and_belongs_to_many :users
|
||||
has_and_belongs_to_many :users, join_table: :users_roles
|
||||
belongs_to :resource, polymorphic: true
|
||||
|
||||
scopify
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue