1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix eager load of Serializers on Active Model

This commit is contained in:
Carlos Antonio da Silva 2014-01-17 15:24:48 -02:00
parent a49727213c
commit 486db21f91

View file

@ -59,9 +59,9 @@ module ActiveModel
end
end
def eager_load!
def self.eager_load!
super
ActiveModel::Serializer.eager_load!
ActiveModel::Serializers.eager_load!
end
end