Skip to content

Commit

Permalink
Fix eager load of Serializers on Active Model
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Jan 17, 2014
1 parent d725728 commit 59b6686
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activemodel/lib/active_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ module Serializers
end
end

def eager_load!
def self.eager_load!
super
ActiveModel::Serializer.eager_load!
ActiveModel::Serializers.eager_load!
end
end

Expand Down

0 comments on commit 59b6686

Please sign in to comment.