diff options
author | Benny Klotz <benny.klotz92@gmail.com> | 2015-12-03 07:45:30 +0100 |
---|---|---|
committer | Benny Klotz <benny.klotz92@gmail.com> | 2015-12-03 07:45:30 +0100 |
commit | 2548aa6d22a41624eb62dea9d76b8187bd9dcab8 (patch) | |
tree | 231d04bcf9ab44a6c490fa4396e89809a865a818 /guides/source | |
parent | 476b14a32ddb89241027902e76e8455013972276 (diff) | |
download | rails-2548aa6d22a41624eb62dea9d76b8187bd9dcab8.tar.gz rails-2548aa6d22a41624eb62dea9d76b8187bd9dcab8.tar.bz2 rails-2548aa6d22a41624eb62dea9d76b8187bd9dcab8.zip |
fix doc for rails custom configuration through config_for [skip ci]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/configuring.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index be355d3324..ed7d7edfe5 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -1142,13 +1142,13 @@ You can also use `Rails::Application.config_for` to load whole configuration fil # config/application.rb module MyApp class Application < Rails::Application - config.payment = Rails.application.config_for(:payment) + config.payment = config_for(:payment) end end ``` ```ruby - Rails.configuration.payment.merchant_id # => production_merchant_id or development_merchant_id + Rails.configuration.payment['merchant_id'] # => production_merchant_id or development_merchant_id ``` Search Engines Indexing |