app/services/step_links_for_rules.rb
def rules_from_step_content
    @rules_from_step_content ||= content_items.each_with_object({}) do |content_item, items|
      items[content_item["content_id"]] = build_rule(content_item)
    end
  end
# hash of rules payloads keyed by content_id
hash of rules payloads keyed by content_id
hash of rules payloads keyed by content_id
def rules_from_step_content
    @rules_from_step_content ||= content_items.each_with_object({}) do |content_item, items|
      items[content_item["content_id"]] = build_rule(content_item)
    end
  end
def rules_from_step_content @rules_from_step_content ||= content_items . each_with_object ( { } ) do | content_item , items | items [ content_item [ "content_id" ] ] = build_rule ( content_item ) end end
hash of rules payloads keyed by content_id
hash of rules payloads keyed by content_id