Sha256: 289a099f2ea8d8f3fb216920cec590a4a3d9ed25d4ac7647f327bbd93e7b1942

Contents?: true

Size: 169 Bytes

Versions: 28

Compression:

Stored size: 169 Bytes

Contents

# -*- encoding : utf-8 -*-
class Permission < ActiveRecord::Base

  has_and_belongs_to_many :user
  
  validates :name, :uniqueness => true
  attr_accessible :name

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
mdd-2.0.3 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-2.0.2 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-2.0.1 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-2.0 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-1.1.0 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-1.0.3 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-1.0.2 lib/generators/mdd/sandbox/templates/app/models/permission.rb
mdd-1.0.1 lib/generators/mdd/sandbox/templates/app/models/permission.rb