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

Merge pull request #710 from viniciusnz/master

Allow language to be set in geocoded_by as proc
parents 339cd14d 2adaef0b
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,8 @@ module Geocoder
:geocode_block => block,
:units => options[:units],
:method => options[:method],
:lookup => options[:lookup]
:lookup => options[:lookup],
:language => options[:language]
)
end
......@@ -33,7 +34,8 @@ module Geocoder
:reverse_block => block,
:units => options[:units],
:method => options[:method],
:lookup => options[:lookup]
:lookup => options[:lookup],
:language => options[:language]
)
end
......
......@@ -20,7 +20,8 @@ module Geocoder
:units => options[:units],
:method => options[:method],
:skip_index => options[:skip_index] || false,
:lookup => options[:lookup]
:lookup => options[:lookup],
:language => options[:language]
)
end
......@@ -36,7 +37,8 @@ module Geocoder
:units => options[:units],
:method => options[:method],
:skip_index => options[:skip_index] || false,
:lookup => options[:lookup]
:lookup => options[:lookup],
:language => options[:language]
)
end
......
......@@ -101,7 +101,7 @@ module Geocoder
return
end
query_options = [:lookup, :ip_lookup].inject({}) do |hash, key|
query_options = [:lookup, :ip_lookup, :language].inject({}) do |hash, key|
if options.has_key?(key)
val = options[key]
hash[key] = val.respond_to?(:call) ? val.call(self) : val
......
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