mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-24 01:07:52 -05:00
16 lines
478 B
Ruby
16 lines
478 B
Ruby
Geocoder.configure(
|
|
:units => :km,
|
|
:timeout => 10,
|
|
:http_headers => {
|
|
"User-Agent" =>
|
|
"#{Growstuff::Application.config.user_agent} #{Growstuff::Application.config.user_agent_email}",
|
|
"From" => Growstuff::Application.config.user_agent_email
|
|
}
|
|
)
|
|
# This configuration takes precedence over environment/test.rb
|
|
# Reported as https://github.com/alexreisner/geocoder/issues/509
|
|
if Geocoder.config.lookup != :test
|
|
Geocoder.configure(:lookup => :nominatim)
|
|
end
|
|
|