lib/geocoder/lookups/freegeoip.rb in geocoder-1.3.1 vs lib/geocoder/lookups/freegeoip.rb in geocoder-1.3.2
- old
+ new
@@ -5,9 +5,13 @@
class Freegeoip < Base
def name
"FreeGeoIP"
end
+
+ def supported_protocols
+ [:http]
+ end
def query_url(query)
"#{protocol}://#{host}/json/#{query.sanitized_text}"
end