Module: ParallelAgentNames

Defined in:
backend/app/model/mixins/parallel_agent_names.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'backend/app/model/mixins/parallel_agent_names.rb', line 3

def self.included(base)
  base.set_model_scope :global

  base.one_to_many :structured_date_label, :class => "StructuredDateLabel"

  base.def_nested_record(:the_property => :use_dates,
                         :contains_records_of_type => :structured_date_label,
                         :corresponding_to_association => :structured_date_label)
end