]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Merge branch 'master' into redesign
[rails.git] / app / controllers / application_controller.rb
index fec202ca545fa8b8ee80155c40bbfed44ef6a032..67e25c6a7b86520bb1526f0ef8236e897f984bab 100644 (file)
@@ -418,6 +418,10 @@ class ApplicationController < ActionController::Base
     request.body.rewind
   end
 
+  def map_layout
+    request.xhr? ? false : 'map'
+  end
+
   def preferred_editor
     editor = if params[:editor]
       params[:editor]