diff --git a/lib/geocoder/lookups/cloudmade.rb b/lib/geocoder/lookups/cloudmade.rb index a5d36177d2e80e08b89b26093e3239bd4b2bd5f0..afb6993e44c9007371057c3620a4c0155003641e 100644 --- a/lib/geocoder/lookups/cloudmade.rb +++ b/lib/geocoder/lookups/cloudmade.rb @@ -24,7 +24,7 @@ module Geocoder::Lookup end def query_url_params(query) - params = { + { :query => query.sanitized_text, :return_location => true, :return_geometry => false diff --git a/lib/geocoder/lookups/maxmind_local.rb b/lib/geocoder/lookups/maxmind_local.rb index 1045b748f88c04816888965e5e7583eedd7a0ea0..7f62aea4751039516a21c9904c939a6ef66fcff5 100644 --- a/lib/geocoder/lookups/maxmind_local.rb +++ b/lib/geocoder/lookups/maxmind_local.rb @@ -7,7 +7,7 @@ module Geocoder::Lookup def initialize begin require 'geoip' - rescue LoadError => e + rescue LoadError raise 'Could not load geoip dependency. To use MaxMind Local lookup you must add geoip gem to your Gemfile or have it installed in your system.' end @@ -38,4 +38,4 @@ module Geocoder::Lookup result.nil? ? [] : [result.to_hash] end end -end \ No newline at end of file +end