lib/fields/serializer/fields_tree.rb in fields-serializer-0.5.6 vs lib/fields/serializer/fields_tree.rb in fields-serializer-0.5.7
- old
+ new
@@ -50,10 +50,10 @@
result
else
result << k
end
end.presence
- Array(to_includes).one? ? to_includes.first : to_includes
+ Array.wrap(to_includes).one? ? to_includes.first : to_includes
end
def to_s
notation.to_s
end