aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-01-17 15:24:48 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-01-17 15:30:09 -0200
commit486db21f919c39cef76b487be45290b7561307e8 (patch)
tree29df74f56a053e53d4c7eee2b8fe40242cbee9c4 /activemodel
parenta49727213c3f5906a3fbbfa552256312e0cc319e (diff)
downloadrails-486db21f919c39cef76b487be45290b7561307e8.tar.gz
rails-486db21f919c39cef76b487be45290b7561307e8.tar.bz2
rails-486db21f919c39cef76b487be45290b7561307e8.zip
Fix eager load of Serializers on Active Model
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb
index 469f137d03..3e49c34182 100644
--- a/activemodel/lib/active_model.rb
+++ b/activemodel/lib/active_model.rb
@@ -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