Merge pull request #16979 from square/standardize-call-style

Standardize on `Rails.application` [ci skip]
This commit is contained in:
Yves Senn 2014-09-21 11:42:51 +02:00
commit fac25eb7b0
4 changed files with 4 additions and 4 deletions

View File

@ -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
```

View File

@ -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
```

View File

@ -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

View File

@ -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)