| Class | GoogleMaps |
| In: |
app/models/google_maps.rb
|
| Parent: | Object |
# File app/models/google_maps.rb, line 38
38: def api_url
39: "http://maps.google.com/maps?file=api&v=2&key=#{key}"
40: end
# File app/models/google_maps.rb, line 15
15: def config
16: if @config.nil?
17: if File.exists?(config_file)
18: yaml = YAML.load_file(config_file)
19: @config = yaml['googlemaps']
20: end
21: end
22:
23: @config ||= {}
24: end
# File app/models/google_maps.rb, line 11
11: def config_file
12: File.join(RAILS_ROOT, 'config', 'web2.0.yml')
13: end