Sha256: 64e4ff36ce5af8cd272f935b23ca452aa773c36e962312070361e083487d184a

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

require File.dirname(__FILE__) + '/../../../lib/sinatra_resource'

module DataCatalog
  
  module Roles
    include SinatraResource::Roles
  
    role :anonymous
    role :basic   => :anonymous
    role :owner   => :basic
    role :curator => :basic
    role :admin   => [:owner, :curator]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra_resource-0.1.0 examples/datacatalog/lib/roles.rb