-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark
Rails/ApplicationController
and similar cops as unsafe autocor…
…rect We have a controller class which inherits `ActionController::Base` directly. That controller is for health check endpoint. ```ruby class HealthCheckController < ActionController::Base # we want to skip some authentication logics... def index head :ok end end ``` ```ruby class ApplicationController < ActionController::Base # default some authentication logics... end ``` In such case, automatically modifying the `ActionController :: Base`->` ApplicationController` is not safe .
- Loading branch information
1 parent
ad4e97d
commit a1aa7d5
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters