Sha256: 266289c0050754af3a2448abe503a5cf20c43ca36e416f6acb4fea44e647154d

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

class SubjectLanguage < ActiveRecordShared

	belongs_to :study_subject
	attr_protected :study_subject_id, :study_subject
	belongs_to :language

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

	validates_presence_of :other, :if => :language_is_other?

end

Version data entries

1 entries across 1 versions & 1 rubygems

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