Permalink
Browse files

ActiveModel::Base doesn't exist, include_root_in_json is a class_attr…

…ibute for the classes which includes this module
  • Loading branch information...
spastorino committed Aug 10, 2010
1 parent dd1b330 commit a6c6cbfb552102eb974a45e25d21372ed62891b8
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/serializers/json.rb
@@ -18,9 +18,9 @@ module JSON
# 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

0 comments on commit a6c6cbf

Please sign in to comment.