Sha256: 0974fe6e0ecd73cf96ab62e2d9a051c0e04f4e79e644acfb00fc0bef19acb243

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

require File.expand_path(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

3 entries across 3 versions & 1 rubygems

Version Path
sinatra_resource-0.4.24 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.23 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.22 examples/datacatalog/lib/roles.rb