app/models/hierarchy_entry.rb
# Some HEs have a "source database" agent, which needs to be considered in
# addition to normal sources.
Some HEs have a "source database" agent, which needs to be considered in
addition to normal sources.
Some HEs have a " source database " agent which needs to be considered in addition to normal sources .
def source_database_agents
    @source_db_agents ||=
      agents_hierarchy_entries.
        select { |ar| ar.agent_role_id == AgentRole.source_database.id }.
        map(&:agent)
  end
def source_database_agents @source_db_agents ||= agents_hierarchy_entries . select { | ar | ar . agent_role_id == AgentRole . source_database . id } . map ( & :agent ) end
Some HEs have a "source database" agent, which needs to be considered in
addition to normal sources.
Some HEs have a " source database " agent which needs to be considered in addition to normal sources .