mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Revert "Make sure render json: ..., each_serializer: ... is working with Enumerables"
This reverts commit 90343cea4d.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user