]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/messages_controller.rb
Pass min/max lat/lon to notes index rss builder
[rails.git] / app / controllers / messages_controller.rb
index e801915d6e03d9933cd30e919ca8a73237ab5566..cc311f93f9a67650d3e6577f77b29dfc77533dff 100644 (file)
@@ -121,11 +121,7 @@ class MessagesController < ApplicationController
 
       referer = safe_referer(params[:referer]) if params[:referer]
 
-      if referer
-        redirect_to referer
-      else
-        redirect_to :action => :inbox
-      end
+      redirect_to referer || { :action => :inbox }
     end
   rescue ActiveRecord::RecordNotFound
     @title = t "messages.no_such_message.title"