Sha256: 87ebc3106681227b261cd5453727fbb5c9134a63bf25de7999667cf506c4ded5

Contents?: true

Size: 319 Bytes

Versions: 36

Compression:

Stored size: 319 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

36 entries across 36 versions & 1 rubygems

Version Path
sinatra_resource-0.4.21 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.20 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.19 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.18 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.17 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.16 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.15 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.14 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.13 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.12 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.11 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.10 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.9 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.8 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.7 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.6 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.5 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.4 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.3 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.2 examples/datacatalog/lib/roles.rb