mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
ActiveModel::Base doesn't exist, include_root_in_json is a class_attribute for the classes which includes this module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user