Sha256: 6be7d37c70e9466d1746ead774a66da3b3818cb4a3c991b417c8535d69b2831b
Contents?: true
Size: 369 Bytes
Versions: 5
Compression:
Stored size: 369 Bytes
Contents
class UserMembership < ActiveRecord::Base # Be careful here! :user needs to come out of this if we ever support update action on memberships controller attr_accessible :user, :organization_attributes belongs_to :user belongs_to :organization accepts_nested_attributes_for :organization validates :user_id, :uniqueness => {:scope => :organization_id} end
Version data entries
5 entries across 5 versions & 1 rubygems