Revert "Make sure render json: ..., each_serializer: ... is working with Enumerables"

This reverts commit 90343cea4d.
This commit is contained in:
Nate Berkopec
2015-01-13 17:12:02 -05:00
parent f1c3268a54
commit 577db35824
4 changed files with 2 additions and 22 deletions

View File

@@ -56,7 +56,7 @@ end
attr_reader :key_format
def serializer_for(resource, options = {})
if resource.respond_to?(:each)
if resource.respond_to?(:to_ary)
if Object.constants.include?(:ArraySerializer)
::ArraySerializer
else