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:
parent
d4ca0a44c7
commit
3a98877d73
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue