From a6c6cbfb552102eb974a45e25d21372ed62891b8 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 10 Aug 2010 11:53:58 -0300 Subject: ActiveModel::Base doesn't exist, include_root_in_json is a class_attribute for the classes which includes this module --- activemodel/lib/active_model/serializers/json.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activemodel/lib/active_model/serializers') 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 ActiveModel::Base.include_root_in_json 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 include_root_in_json 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 -- cgit v1.2.3