]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/site_controller.rb
Load map key data in controller
[rails.git] / app / controllers / site_controller.rb
index 5fb8aa111183455586693a2f601024e40e674d55..dce5faf54d3f43072bbdd2631015c2b3f12fa045 100644 (file)
@@ -48,6 +48,7 @@ class SiteController < ApplicationController
 
   def key
     expires_in 7.days, :public => true
+    @key = YAML.load_file(Rails.root.join("config/key.yml"))
     render :layout => false
   end