Update rolify and cancancan

This commit is contained in:
Stella Rouzi 2016-03-04 19:33:06 +02:00
parent 9fbd2e9618
commit 40a48e1e7e
6 changed files with 359 additions and 352 deletions

View file

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