From a489079334db3cf03756d3cee8a5231d63449d6f Mon Sep 17 00:00:00 2001 From: benni Date: Sun, 30 Dec 2012 15:13:50 +0100 Subject: [PATCH] Fixed wrong request method in deny_access. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d22e2e07..5328b0e1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -22,7 +22,7 @@ class ApplicationController < ActionController::Base helper_method :current_user def deny_access - self.return_to = request.request_uri + self.return_to = request.original_url redirect_to login_url, :alert => 'Access denied!' end