Sha256: 630f3326f3429fbcbdf93bde1a57b59538f4fa9be77f8eaaa9b3cb7e64b77713

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

class SubjectRace < ActiveRecordShared

	belongs_to :study_subject
	attr_protected :study_subject_id, :study_subject
	belongs_to :race

	delegate :is_other?, :to => :race, :allow_nil => true, :prefix => true

	validates_presence_of :other, :if => :race_is_other?

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccls-ccls_engine-3.11.0 app/models/subject_race.rb