Skip to content

Commit

Permalink
Include namespace when looking up superclass
Browse files Browse the repository at this point in the history
  • Loading branch information
dpogue committed Aug 3, 2017
1 parent 1e4d117 commit 3fd0e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model/serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def self.get_serializer_for(klass, namespace = nil)
if serializer_class
serializer_class
elsif klass.superclass
get_serializer_for(klass.superclass)
get_serializer_for(klass.superclass, namespace)
else
nil # No serializer found
end
Expand Down

0 comments on commit 3fd0e29

Please sign in to comment.