Skip to content

Commit 4a22841

Browse files
committed
added a note about consider_all_requests_local to ErrorsController
1 parent a76a514 commit 4a22841

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/controllers/errors_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Provides web actions that represent errors. Rails' standard error pages are static HTML with inline CSS; by using
2-
# a custom error controller we get all the layouts and CSS.
1+
# Provides web actions that represent errors. Rails' standard error pages are static HTML with inline CSS;
2+
# by using a custom error controller we get all the layouts and CSS, as well as error reporting.
3+
# Note that it requires +consider_all_requests_local+ to be +false+ (see environment config files for details)
34
class ErrorsController < ApplicationController
45
protect_from_forgery with: :exception, except: [:error], store: :cookie
56

0 commit comments

Comments
 (0)