mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Refactor routes in order to be compatible with Rails 4
This commit is contained in:
@ -61,7 +61,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
rescue_from Discourse::NotLoggedIn do |e|
|
||||
raise e if Rails.env.test?
|
||||
redirect_to root_path
|
||||
redirect_to "/"
|
||||
end
|
||||
|
||||
rescue_from Discourse::NotFound do
|
||||
|
Reference in New Issue
Block a user