1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ErrorsController shouldn't inherit ApplicationController, but ActionController::Base

Inheriting `ApplicationController` often causes an issue as it always
has before/after actions. It should encourage to use `ActionController::Base` instead.

[ci skip]
This commit is contained in:
Yuki Nishijima 2014-06-19 13:00:46 -07:00
parent d4ca0a44c7
commit 3a98877d73

View file

@ -1191,7 +1191,7 @@ Create the controller and views.
* `app/controllers/errors_controller.rb` * `app/controllers/errors_controller.rb`
```ruby ```ruby
class ErrorsController < ApplicationController class ErrorsController < ActionController::Base
layout 'error' layout 'error'
def not_found def not_found