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:
parent
a49727213c
commit
486db21f91
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue