lib/linkable_topics.rb
# collections-publisher uses a slash to separate the top-level topic name from
# the second-level topic (or "subtopic"). Whitehall has historically used a colon,
# so we'll change that here.
collections-publisher uses a slash to separate the top-level topic name from
the second-level topic (or "subtopic"). Whitehall has historically used a colon,
so we'll change that here.
collections - publisher uses a slash to separate the top - level topic name from the second - level topic ( or " subtopic " ) . Whitehall has historically used a colon so we ' ll change that here .
def change_separator(items)
    items.map do |item|
      item["internal_name"] = item.fetch("internal_name").gsub(" / ", ": ")
      item
    end
  end
def change_separator ( items ) items . map do | item | item [ "internal_name" ] = item . fetch ( "internal_name" ) . gsub ( " / " , ": " ) item end end
collections-publisher uses a slash to separate the top-level topic name from
the second-level topic (or "subtopic").
collections - publisher uses a slash to separate the top - level topic name from the second - level topic ( or " subtopic " ) .
items