mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Merge branch 'master' of github.com:josevalim/active_model_serializers
This commit is contained in:
@@ -53,9 +53,7 @@ module ActiveModel
|
||||
@options[:unique_values] = {}
|
||||
|
||||
array = serializable_array.map do |item|
|
||||
if item.is_a?(Hash)
|
||||
item
|
||||
elsif item.respond_to?(:serializable_hash)
|
||||
if item.respond_to?(:serializable_hash)
|
||||
item.serializable_hash
|
||||
else
|
||||
item.as_json
|
||||
|
||||
Reference in New Issue
Block a user