Skip to content

Commit

Permalink
Merge pull request #12874 from chancancode/better_as_loading_guides
Browse files Browse the repository at this point in the history
Make it clear that require 'active_support' is required [ci-skip]
  • Loading branch information
rafaelfranca committed Nov 13, 2013
2 parents 3d2e8cb + b090122 commit 54dde36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guides/source/active_support_core_extensions.md
Expand Up @@ -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'
```

Expand All @@ -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'
```

Expand All @@ -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'
```

Expand Down

0 comments on commit 54dde36

Please sign in to comment.