Sha256: 71a07055a2e36c692419f8a4eda16568b93d5474306d00b640678d8c0ce05d16

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

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

3 entries across 3 versions & 1 rubygems

Version Path
sinatra_resource-0.4.24 examples/datacatalog/resources/notes.rb
sinatra_resource-0.4.23 examples/datacatalog/resources/notes.rb
sinatra_resource-0.4.22 examples/datacatalog/resources/notes.rb