Commit 2ae77035 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve lib/api/helpers/related_resources_helpers.rb

parent 9ef2acb4
......@@ -13,11 +13,7 @@ module API
def expose_url(path)
url_options = Rails.application.routes.default_url_options
<<<<<<< HEAD
host, protocol, port = url_options.slice(:host, :protocol, :port).values
=======
protocol, host, port = url_options.slice(:protocol, :host, :port).values
>>>>>>> upstream/master
URI::HTTP.build(scheme: protocol, host: host, port: port, path: path).to_s
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment