Class: AgentOccupation

Inherits:
Sequel::Model
  • Object
show all
Includes:
ASModel, Notes, TouchRecords
Defined in:
backend/app/model/agent_occupation.rb

Constant Summary

Constants included from JSONModel

JSONModel::REFERENCE_KEY_REGEX

Class Method Summary collapse

Methods included from TouchRecords

#delete, included, #set_parent_and_position, #set_root, #update_from_json

Methods included from Notes

included, #persistent_id_context, #update_from_json

Methods included from ASModel

all_models, included, update_publish_flag, update_suppressed_flag

Methods included from JSONModel

JSONModel, #JSONModel, add_error_handler, all, allow_unmapped_enum_value, backend_url, check_valid_refs, client_mode?, custom_validations, destroy_model, enum_default_value, enum_values, handle_error, init, load_schema, #models, models, parse_jsonmodel_ref, parse_reference, repository, repository_for, schema_src, set_publish_flags!, set_repository, strict_mode, strict_mode?, validate_schema, with_repository

Class Method Details

.touch_records(obj) ⇒ Object



25
26
27
28
29
30
31
32
# File 'backend/app/model/agent_occupation.rb', line 25

def self.touch_records(obj)
  [{
    type: Subject, ids: (
      AgentManager.linked_subjects(obj.id, :subject_agent_subrecord, :agent_occupation) +
      AgentManager.linked_subjects(obj.id, :subject_agent_subrecord_place, :agent_occupation)
    ).uniq
  }]
end