Sha256: a4b63e9fad135635b1540019c9ec87848c16b2f17456d940e75c98fe23b376e3

Contents?: true

Size: 212 Bytes

Versions: 1

Compression:

Stored size: 212 Bytes

Contents

class UserRole < ActiveRecord::Base
  belongs_to :user
  belongs_to :role

  validates_presence_of :user_id
  validates_presence_of :role_id

  #validates_uniqueness_of [:muscle_user_id, :role_id]

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
role_based_security-0.5.0 lib/generators/role_based_security/templates/user_role.rb