Module: Subjects
- Defined in:
- backend/app/model/mixins/subjects.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 |
# File 'backend/app/model/mixins/subjects.rb', line 3 def self.included(base) base.include(Relationships) base.define_relationship(:name => :subject, :json_property => 'subjects', :contains_references_to_types => proc {[Subject]}) end |