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

@@ -87,7 +87,7 @@ module ActionController
if serializer = options.fetch(:serializer, default_serializer(resource))
options[:scope] = serialization_scope unless options.has_key?(:scope)
if resource.respond_to?(:each)
if resource.respond_to?(:to_ary)
options[:resource_name] = controller_name
options[:namespace] = namespace_for_serializer if namespace_for_serializer
end