mirror of https://github.com/rails/rails
Merge pull request #16979 from square/standardize-call-style
Standardize on `Rails.application` [ci skip]
This commit is contained in:
commit
fac25eb7b0
|
@ -322,7 +322,7 @@ Please refer to the [Changelog][railties] for detailed changes.
|
|||
namespace: my_app_development
|
||||
|
||||
# config/production.rb
|
||||
MyApp::Application.configure do
|
||||
Rails.application.configure do
|
||||
config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
||||
end
|
||||
```
|
||||
|
|
|
@ -138,7 +138,7 @@ You can easily change your adapter:
|
|||
```ruby
|
||||
# be sure to have the adapter gem in your Gemfile and follow the adapter specific
|
||||
# installation and deployment instructions
|
||||
YourApp::Application.config.active_job.queue_adapter = :sidekiq
|
||||
Rails.application.config.active_job.queue_adapter = :sidekiq
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
namespace: my_app_development
|
||||
|
||||
# config/production.rb
|
||||
MyApp::Application.configure do
|
||||
Rails.application.configure do
|
||||
config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
||||
end
|
||||
|
||||
|
|
|
@ -217,7 +217,7 @@ module Rails
|
|||
# namespace: my_app_development
|
||||
#
|
||||
# # config/production.rb
|
||||
# MyApp::Application.configure do
|
||||
# Rails.application.configure do
|
||||
# config.middleware.use ExceptionNotifier, config_for(:exception_notification)
|
||||
# end
|
||||
def config_for(name)
|
||||
|
|
Loading…
Reference in New Issue