aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-07-17 20:00:48 +0200
committerXavier Noria <fxn@hashref.com>2010-07-17 20:00:48 +0200
commit631b9564d284d1cbcfabeea272df4b853834fe9d (patch)
tree343f07190c45ee5c5cd492e77d3f1116bee8a0f2 /activemodel
parentcaddee253c7a865100af157525861ab58afd4715 (diff)
parentc9630d9d87ad0b4a0fc732034b6a106777e257ca (diff)
downloadrails-631b9564d284d1cbcfabeea272df4b853834fe9d.tar.gz
rails-631b9564d284d1cbcfabeea272df4b853834fe9d.tar.bz2
rails-631b9564d284d1cbcfabeea272df4b853834fe9d.zip
Merge remote branch 'docrails/master'
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/serializers/json.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/serializers/json.rb b/activemodel/lib/active_model/serializers/json.rb
index 918cd0ab76..500b2399a3 100644
--- a/activemodel/lib/active_model/serializers/json.rb
+++ b/activemodel/lib/active_model/serializers/json.rb
@@ -19,8 +19,8 @@ module ActiveModel
# passed through +options+.
#
# The option <tt>ActiveModel::Base.include_root_in_json</tt> controls the
- # top-level behavior of to_json. It is true by default. When it is <tt>true</tt>,
- # to_json will emit a single root node named after the object's type. For example:
+ # top-level behavior of <tt>to_json</tt>. It is <tt>true</tt> by default. When it is <tt>true</tt>,
+ # <tt>to_json</tt> will emit a single root node named after the object's type. For example:
#
# konata = User.find(1)
# konata.to_json