mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Add test and bugfix to include an array of string
This commit is contained in:
@@ -52,7 +52,7 @@ module ActiveModel
|
||||
hash[key] = include_args_to_hash(value)
|
||||
end
|
||||
when Array
|
||||
included.reduce({}) { |a, e| a.merge!(include_args_to_hash(e)) }
|
||||
included.reduce({}) { |a, e| a.deep_merge!(include_args_to_hash(e)) }
|
||||
when String
|
||||
include_string_to_hash(included)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user