From 12ed0cd8061fd608000ca3a4db2696ab3a95a7c9 Mon Sep 17 00:00:00 2001 From: Abhay Nikam Date: Tue, 22 Dec 2020 10:22:08 +0530 Subject: [PATCH] Fixes typo: dependending -> depending [ci skip] Fixes typo: britle -> brittle [ci skip] --- guides/source/autoloading_and_reloading_constants.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/source/autoloading_and_reloading_constants.md b/guides/source/autoloading_and_reloading_constants.md index 44793e9396..fb22e702b5 100644 --- a/guides/source/autoloading_and_reloading_constants.md +++ b/guides/source/autoloading_and_reloading_constants.md @@ -160,7 +160,7 @@ $PAYMENT_GATEWAY = Rails.env.production? ? RealGateway : MockedGateway # DO NOT DO THIS. ``` -The idea would be to use `$PAYMENT_GATEWAY` in the code, and let the initializer set that to the actual implementation dependending on the environment. +The idea would be to use `$PAYMENT_GATEWAY` in the code, and let the initializer set that to the actual implementation depending on the environment. On reload, `MockedGateway` is reloaded, but `$PAYMENT_GATEWAY` is not updated because initializers only run on boot. Therefore, it won't reflect the changes. @@ -403,7 +403,7 @@ class Admin::UsersController < ApplicationController end ``` -was not recommended because the resolution of constants inside their body was britle. You'd better write them in this style: +was not recommended because the resolution of constants inside their body was brittle. You'd better write them in this style: ```ruby module Admin