Sha256: 412d3de9279c26c3076e10c431faf83e977c4ecf9729c296454773f19573808a

Contents?: true

Size: 200 Bytes

Versions: 2

Compression:

Stored size: 200 Bytes

Contents

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
recurso-0.6.1 lib/recurso/concerns/permission.rb
recurso-0.5.3 lib/recurso/concerns/permission.rb