aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/constant_autoloading_and_reloading.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-12-15 09:22:21 +0100
committerYves Senn <yves.senn@gmail.com>2014-12-15 09:22:21 +0100
commit0f54387d3c7bbc48fd69f2fe09cf3907098607ed (patch)
tree1b7aa39d90a07114db1bbf9b1ed1a0daa7ad1603 /guides/source/constant_autoloading_and_reloading.md
parentf46676d2392131af193808d92fc59db6fc488ae8 (diff)
downloadrails-0f54387d3c7bbc48fd69f2fe09cf3907098607ed.tar.gz
rails-0f54387d3c7bbc48fd69f2fe09cf3907098607ed.tar.bz2
rails-0f54387d3c7bbc48fd69f2fe09cf3907098607ed.zip
autoloading guide, fix typo `Amin` -> `Admin`. [ci skip]
/cc @fxn
Diffstat (limited to 'guides/source/constant_autoloading_and_reloading.md')
-rw-r--r--guides/source/constant_autoloading_and_reloading.md6
1 files changed, 3 insertions, 3 deletions
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