Add ActiveSupport::DescendantsTracker to Serializer and ArraySerializer

This commit is contained in:
Nicholas Mulder
2013-02-28 10:01:40 -05:00
parent 0114e49238
commit fa51c5f574
2 changed files with 8 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
require "active_support/core_ext/class/attribute"
require 'active_support/dependencies'
require 'active_support/descendants_tracker'
module ActiveModel
# Active Model Array Serializer
@@ -11,6 +13,8 @@ module ActiveModel
# ActiveModel::ArraySerializer.root = false
#
class ArraySerializer
extend ActiveSupport::DescendantsTracker
attr_reader :object, :options
class_attribute :root