From 2548aa6d22a41624eb62dea9d76b8187bd9dcab8 Mon Sep 17 00:00:00 2001 From: Benny Klotz Date: Thu, 3 Dec 2015 07:45:30 +0100 Subject: fix doc for rails custom configuration through config_for [skip ci] --- guides/source/configuring.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guides/source') 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 -- cgit v1.2.3