diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2013-11-13 13:39:34 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2013-11-13 13:39:34 -0800 |
commit | b090122e8bcbd6f70d0992ad9e38954a7a7a8886 (patch) | |
tree | 25651407c9664403330eec2cbb608f92ba92f56f /guides | |
parent | c994e1086270cdfe4e145ea206049f05ef5414d6 (diff) | |
download | rails-b090122e8bcbd6f70d0992ad9e38954a7a7a8886.tar.gz rails-b090122e8bcbd6f70d0992ad9e38954a7a7a8886.tar.bz2 rails-b090122e8bcbd6f70d0992ad9e38954a7a7a8886.zip |
Make it clear that require 'active_support' is required [ci-skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index b72ebd63ee..648036fb3f 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -37,9 +37,10 @@ For every single method defined as a core extension this guide has a note that s NOTE: Defined in `active_support/core_ext/object/blank.rb`. -That means that this single call is enough: +That means that you can require it like this: ```ruby +require 'active_support' require 'active_support/core_ext/object/blank' ``` @@ -52,6 +53,7 @@ The next level is to simply load all extensions to `Object`. As a rule of thumb, Thus, to load all extensions to `Object` (including `blank?`): ```ruby +require 'active_support' require 'active_support/core_ext/object' ``` @@ -60,6 +62,7 @@ require 'active_support/core_ext/object' You may prefer just to load all core extensions, there is a file for that: ```ruby +require 'active_support' require 'active_support/core_ext' ``` |