Module: GeoMagic::RailsServiceAdapter
Instance Attribute Summary
#config, #geo_coder
Instance Method Summary
collapse
#geocode, #reverse_geocode, services_available
Instance Method Details
13
14
15
16
|
# File 'lib/rails/config.rb', line 13
def configure file_name = 'map_api_keys.yml'
@config ||= ::YAML.load_file("#{::Rails.root}/config/#{file_name}")[env]
self
end
|
#env ⇒ Object
7
8
9
10
11
|
# File 'lib/rails/config.rb', line 7
def env
heroku = ENV['HEROKU_SITE'] if ENV
rails_env = ::Rails.env.downcase if ::Rails.env
heroku || rails_env || 'development'
end
|