Class: AgentTopic

Inherits:
Sequel::Model
  • Object
show all
Defined in:
backend/app/model/agent_topic.rb

Class Method Summary collapse

Class Method Details

.touch_records(obj) ⇒ Object



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

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