]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_way_controller.rb
Add a "database readonly" state that allows all writes to the database
[rails.git] / app / controllers / old_way_controller.rb
index 6b0c9dd2ecd059adfa40c727499a5268bcbc6915..3d913c0f7660ce49b86a251bf3a19ccc4918d229 100644 (file)
@@ -1,6 +1,10 @@
 class OldWayController < ApplicationController
   require 'xml/libxml'
 
+  session :off
+  before_filter :check_api_readable
+  after_filter :compress_output
+
   def history
     begin
       way = Way.find(params[:id])