Fixed wrong request method in deny_access.
This commit is contained in:
parent
9e228085df
commit
a489079334
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue