aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2013-10-30 10:43:43 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2013-10-30 10:43:43 -0700
commitdae66a0c9733a7fd2ba4357e24b03b386be3e38f (patch)
treecc37c85d095046fd639a6ff682209d007d3f38b6 /guides/source/active_support_core_extensions.md
parent45318e4010e4f6303ef740bf159d2803c28acc7a (diff)
parent64c88fb5d2caf3c34742a07394ac68b8377c4936 (diff)
downloadrails-dae66a0c9733a7fd2ba4357e24b03b386be3e38f.tar.gz
rails-dae66a0c9733a7fd2ba4357e24b03b386be3e38f.tar.bz2
rails-dae66a0c9733a7fd2ba4357e24b03b386be3e38f.zip
Merge pull request #12203 from chancancode/eager_load_json
Eagerload active_support/json/encoding in active_support/core_ext/object/to_json
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md6
1 files changed, 2 insertions, 4 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index d3f49b19fa..74dfd23811 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -421,11 +421,9 @@ NOTE: Defined in `active_support/core_ext/object/with_options.rb`.
### JSON support
-Active Support provides a better implementation of `to_json` than the +json+ gem ordinarily provides for Ruby objects. This is because some classes, like +Hash+ and +OrderedHash+ needs special handling in order to provide a proper JSON representation.
+Active Support provides a better implementation of `to_json` than the +json+ gem ordinarily provides for Ruby objects. This is because some classes, like +Hash+, +OrderedHash+ and +Process::Status+ needs special handling in order to provide a proper JSON representation.
-Active Support also provides an implementation of `as_json` for the <tt>Process::Status</tt> class.
-
-NOTE: Defined in `active_support/core_ext/object/to_json.rb`.
+NOTE: Defined in `active_support/core_ext/object/json.rb`.
### Instance Variables