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,5 +1,7 @@
require "active_support/core_ext/class/attribute"
require "active_support/core_ext/module/anonymous"
require 'active_support/dependencies'
require 'active_support/descendants_tracker'
module ActiveModel
# Active Model Serializer
@@ -36,6 +38,8 @@ module ActiveModel
# end
#
class Serializer
extend ActiveSupport::DescendantsTracker
INCLUDE_METHODS = {}
INSTRUMENT = { :serialize => :"serialize.serializer", :associations => :"associations.serializer" }