Sha256: 14c7852defb9ce1ac525651dd37907a1e1b2d778d9690507f21f9222f10afc1f

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

module Pbw
  class Token
    include ::Mongoid::Document
    include ::Mongoid::Timestamps
    field :name, type: String
    validates_presence_of :name

    has_and_belongs_to_many :capabilities
    has_and_belongs_to_many :constraints
    has_and_belongs_to_many :processes
    has_and_belongs_to_many :triggers
    has_many :user_tokens

    attr_accessible :name
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pbw-0.0.4 app/models/pbw/token.rb
pbw-0.0.3 app/models/pbw/token.rb