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.1 examples/datacatalog/lib/roles.rb
sinatra_resource-0.4.0 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.6 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.5 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.4 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.3 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.2 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.1 examples/datacatalog/lib/roles.rb
sinatra_resource-0.3.0 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.6 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.5 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.4 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.3 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.2 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.1 examples/datacatalog/lib/roles.rb
sinatra_resource-0.2.0 examples/datacatalog/lib/roles.rb