Permalink
Browse files

Fix eager load of Serializers on Active Model

  • Loading branch information...
1 parent a497272 commit 486db21f919c39cef76b487be45290b7561307e8 @carlosantoniodasilva carlosantoniodasilva committed Jan 17, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/lib/active_model.rb
@@ -59,9 +59,9 @@ module Serializers
end
end
- def eager_load!
+ def self.eager_load!
super
- ActiveModel::Serializer.eager_load!
+ ActiveModel::Serializers.eager_load!
@egilburg

egilburg Jan 17, 2014

Contributor

Would ActiveModel namespace be implied here?

@carlosantoniodasilva

carlosantoniodasilva Jan 17, 2014

Owner

Yeah it'd, not a big deal though 👍

end
end

0 comments on commit 486db21

Please sign in to comment.