Skip to content
Snippets Groups Projects
Commit 30aa62f1 authored by Alex Reisner's avatar Alex Reisner
Browse files

Remove unnecessary method.

parent 1f11fc51
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ module Geocoder::Lookup
end
def query_url(query)
"#{ protocol }://geo.pointp.in/#{ api_key }/json/#{ query.sanitized_text }"
"#{protocol}://geo.pointp.in/#{configuration.api_key}/json/#{query.sanitized_text}"
end
private
......@@ -60,9 +60,5 @@ module Geocoder::Lookup
"country_code" => "RD"
}
end
def api_key
configuration.api_key
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment