lib/caboodle/kits/googlelocal/googlelocal.rb in caboodle-0.2.16 vs lib/caboodle/kits/googlelocal/googlelocal.rb in caboodle-0.2.18
- old
+ new
@@ -8,17 +8,17 @@
config_files ["googlelocal.yml"]
stylesheets ["http://www.google.com/uds/solutions/mapsearch/gsmapsearch.css", "http://www.google.com/uds/css/gsearch.css"]
before do
- @locations = Config.google_local_locations
- @location = Config.google_local_locations.first
+ @locations = Settings.google_local_locations
+ @location = Settings.google_local_locations.first
end
menu "Near me"
get "/near_me/:slug" do
- Config.google_local_locations.each do |loc|
+ Settings.google_local_locations.each do |loc|
if loc.title.downcase.gsub(" ","-") == params[:slug]
@location = loc
end
end
\ No newline at end of file