Module: Recurso::Permission

Included in:
Permission
Defined in:
lib/recurso/concerns/permission.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
# File 'lib/recurso/concerns/permission.rb', line 3

def self.included(base)
  base.belongs_to :resource, polymorphic: true

  base.enum level: [:member, :admin, :viewer, :editor, :guest]
end