Sha256: 768f10e58db467636014c64691c63f200f68327ca854eca4d050ec85e0abdbd9
Contents?: true
Size: 423 Bytes
Versions: 42
Compression:
Stored size: 423 Bytes
Contents
# UserGroup - User intersection model # module Edgarj class UserGroupUser < ActiveRecord::Base self.table_name = 'edgarj_user_group_users' belongs_to :user_group belongs_to :user validates_presence_of :user_group_id validates_presence_of :user_id validates_uniqueness_of :user_id, :scope=>:user_group_id def name self.user.name + ' of ' + self.user_group.name end end end
Version data entries
42 entries across 42 versions & 1 rubygems