Skip to content

fix gmaps under ruby 1.9 #13

Merged
merged 1 commit into from Dec 10, 2011
+1 −1
View
2 app/helpers/application_helper.rb
@@ -45,7 +45,7 @@ def datetime_format(time,format)
# the little overview map obscures such a big chunk of the main map that
# it's likely to hide some of our markers, so it's off by default.
def google_map(locatable_items, options={})
- return nil if defined?(GoogleMap::GOOGLE_APPLICATION_ID) == nil
+ return nil if defined?(GOOGLE_APPLICATION_ID) == nil
options[:controls] ||= [:zoom, :scale, :type] # the default, minus :overview
options[:zoom] ||= 14
Something went wrong with that request. Please try again.