Permalink
Browse files

Revert "test on customize 404 and 500 page."

This reverts commit d079540.
  • Loading branch information...
1 parent a47c352 commit 7dc09dae8dacb4a08fb175b78974766abb7f3e69 @jchappypig committed Mar 16, 2012
@@ -2,24 +2,4 @@ class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :authenticate_user!
-
- unless ActionController::Base.consider_all_requests_local
- rescue_from Exception, with: :render_error
- rescue_from ActiveRecord::RecordNotFound, with: :render_not_found
- rescue_from ActionController::RoutingError, with: :render_not_found
- rescue_from ActionController::UnknownController, with: :render_not_found
- rescue_from ActionController::UnknownAction, with: :render_not_found
- end
-
- private
-
- def render_not_found(exception)
- log_error(exception)
- render "errors/404", status: 404
- end
-
- def render_error(exception)
- log_error(exception)
- render "errors/500", status: 500
- end
end
No changes.
No changes.
@@ -11,7 +11,7 @@
config.whiny_nils = true
# Show full error reports and disable caching
- config.consider_all_requests_local = false
+ config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send

0 comments on commit 7dc09da

Please sign in to comment.