aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-08-10 11:53:58 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2010-08-10 11:53:58 -0300
commita6c6cbfb552102eb974a45e25d21372ed62891b8 (patch)
tree5fe7b1642c1089b94827a75b1a62e6db9e252e16 /activemodel
parentdd1b33078addb07fa2c2efb133f079be38c45657 (diff)
downloadrails-a6c6cbfb552102eb974a45e25d21372ed62891b8.tar.gz
rails-a6c6cbfb552102eb974a45e25d21372ed62891b8.tar.bz2
rails-a6c6cbfb552102eb974a45e25d21372ed62891b8.zip
ActiveModel::Base doesn't exist, include_root_in_json is a class_attribute for the classes which includes this module
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/serializers/json.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/serializers/json.rb b/activemodel/lib/active_model/serializers/json.rb
index e1dbc522de..cf1c4a0fed 100644
--- a/activemodel/lib/active_model/serializers/json.rb
+++ b/activemodel/lib/active_model/serializers/json.rb
@@ -18,9 +18,9 @@ module ActiveModel
# Returns a JSON string representing the model. Some configuration can be
# passed through +options+.
#
- # The option <tt>ActiveModel::Base.include_root_in_json</tt> controls the
- # top-level behavior of +to_json+. If true (the default) +to_json+ will
- # emit a single root node named after the object's type. For example:
+ # The option <tt>include_root_in_json</tt> controls the top-level behavior
+ # of +to_json+. If true (the default) +to_json+ will emit a single root
+ # node named after the object's type. For example:
#
# konata = User.find(1)
# konata.to_json