Sha256: 6c34eccfbbe8f901206c42b69c71b09a1d6604f8986b1d489c6ecfb0e6bfd1ef

Contents?: true

Size: 295 Bytes

Versions: 4

Compression:

Stored size: 295 Bytes

Contents

module Pbw
  class Permission
    include ::Mongoid::Document
    include ::Mongoid::Timestamps
    field :subject_class, type: String
    field :action, type: String
    field :name, type: String

    attr_accessible :subject_class, :action, :name

    has_and_belongs_to_many :roles
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pbw-0.0.6 app/models/pbw/permission.rb
pbw-0.0.5 app/models/pbw/permission.rb
pbw-0.0.4 app/models/pbw/permission.rb
pbw-0.0.3 app/models/pbw/permission.rb