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.1 examples/datacatalog/resources/notes.rb
sinatra_resource-0.4.0 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.6 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.5 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.4 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.3 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.2 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.1 examples/datacatalog/resources/notes.rb
sinatra_resource-0.3.0 examples/datacatalog/resources/notes.rb