forked from sinatra/sinatra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor options / configures into Sinatra::Application
This is a grab-bag of minor configuration related refactorings: * Moved the top-level #configures into Sinatra::Application and delegate from top-level to the default application. * Modified default options loading to parse command line arguments the first time Application::default_options is accessed only. * Removed the ability to reload default_options by setting an application's options to nil. We can add this back in fairly easily but it seems to lead to the bad practice of modifying default_options and then reloading instead of modifying the application options directly.
- Loading branch information
Showing
3 changed files
with
76 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
:logging => false | ||
) | ||
|
||
Sinatra.application.options = nil | ||
Sinatra.application = nil |
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