From 0f54387d3c7bbc48fd69f2fe09cf3907098607ed Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 15 Dec 2014 09:22:21 +0100 Subject: autoloading guide, fix typo `Amin` -> `Admin`. [ci skip] /cc @fxn --- guides/source/constant_autoloading_and_reloading.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides/source/constant_autoloading_and_reloading.md') diff --git a/guides/source/constant_autoloading_and_reloading.md b/guides/source/constant_autoloading_and_reloading.md index de75b4fab7..4bfd6df0bd 100644 --- a/guides/source/constant_autoloading_and_reloading.md +++ b/guides/source/constant_autoloading_and_reloading.md @@ -459,7 +459,7 @@ Rails is not able to say if the trigger was a relative or qualified reference. For example, consider ```ruby -module Amin +module Admin User end ``` @@ -490,7 +490,7 @@ and the `User` constant is already present in `Object`, it is not possible that the situation is ```ruby -module Amin +module Admin User end ``` @@ -505,7 +505,7 @@ namespaces respectively and the constants that make the rule apply are known at that time. But since autoloading happens on demand, if the top-level `User` by chance was -not yet loaded then Rails has no way to know whether `Amin::User` should load it +not yet loaded then Rails has no way to know whether `Admin::User` should load it or raise `NameError`. These kind of name conflicts are rare in practice, but in case there's one -- cgit v1.2.3