Skip to content

Commit b090122

Browse files
committed
Make it clear that require 'active_support' is required [ci-skip]
1 parent c994e10 commit b090122

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guides/source/active_support_core_extensions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ For every single method defined as a core extension this guide has a note that s
3737

3838
NOTE: Defined in `active_support/core_ext/object/blank.rb`.
3939

40-
That means that this single call is enough:
40+
That means that you can require it like this:
4141

4242
```ruby
43+
require 'active_support'
4344
require 'active_support/core_ext/object/blank'
4445
```
4546

@@ -52,6 +53,7 @@ The next level is to simply load all extensions to `Object`. As a rule of thumb,
5253
Thus, to load all extensions to `Object` (including `blank?`):
5354

5455
```ruby
56+
require 'active_support'
5557
require 'active_support/core_ext/object'
5658
```
5759

@@ -60,6 +62,7 @@ require 'active_support/core_ext/object'
6062
You may prefer just to load all core extensions, there is a file for that:
6163

6264
```ruby
65+
require 'active_support'
6366
require 'active_support/core_ext'
6467
```
6568

0 commit comments

Comments
 (0)