diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-14 10:56:25 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-14 10:56:25 +0000 |
commit | 73b2fb25cd257a2e37865198fc684d3e572cf582 (patch) | |
tree | 8c0a5090c087519ab9baf4fbdcd04c540e6f34ec /app/controllers/request_controller.rb | |
parent | a39f71ee21739eb754688f185c59c3a7f209aaa8 (diff) |
include "return" or the rest of the controller still gets executed... Belongs with commit a39f71ee21739eb754688f185c59c3a7f209aaa8
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 7ff97a717..8714f03cf 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -153,7 +153,7 @@ class RequestController < ApplicationController @view = params[:view] @page = get_search_page_from_params if !@page # used in cache case, as perform_search sets @page as side effect if @view == "recent" - redirect_to request_list_all_path(:action => "list", :view => "all", :page => @page), :status => :moved_permanently + return redirect_to request_list_all_path(:action => "list", :view => "all", :page => @page), :status => :moved_permanently end params[:latest_status] = @view query = make_query_from_params |