Sha256: e68252b499ac3ba84be5684423c50a36b389adb1195b6250b7fd3a7e9e74f495

Contents?: true

Size: 394 Bytes

Versions: 29

Compression:

Stored size: 394 Bytes

Contents

module DataCatalog

  class Notes < Base
    include Resource

    model Note

    # == Permissions

    roles Roles
    permission :list   => :basic
    permission :read   => :owner
    permission :create => :basic
    permission :update => :owner
    permission :delete => :owner

    # == Properties

    property :text
    property :user_id

    # == Callbacks

  end
  
  Notes.build

end

Version data entries

29 entries across 29 versions & 1 rubygems

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