lib/yaks/format/hal.rb in yaks-0.9.0 vs lib/yaks/format/hal.rb in yaks-0.10.0

- old
+ new

@@ -85,17 +85,16 @@ # @param [Array] subresources # @return [Hash] def serialize_embedded(subresources) subresources.each_with_object({}) do |sub, memo| memo[sub.rels.first] = if sub.collection? - sub.map( &method(:serialize_resource) ) + sub.map(&method(:serialize_resource)) elsif sub.null_resource? nil else serialize_resource(sub) end end end - end end end