module Bullion::Helpers::Service
def hashed_links_to_link_headers(hash)
def hashed_links_to_link_headers(hash) hash.reduce([]) do |acc, data| name = "rel=\"#{data[0]}\"" value = "<#{data[1]}>" acc << [value, name].join(";") end.join(",") end
def hashed_links_to_link_headers(hash) hash.reduce([]) do |acc, data| name = "rel=\"#{data[0]}\"" value = "<#{data[1]}>" acc << [value, name].join(";") end.join(",") end