-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Short circuit Rails app loading if Rails constant isn't defined
There are sometimes Rails-lookalike applications that might have defined a `config/application.rb` file but don't actually have Rails loaded. This change short circuits the Rails app loading if the `Rails` constant isn't defined after loading the `config/environment.rb` file or the `config/application.rb` file.
- Loading branch information
Showing
2 changed files
with
65 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