lib/representable/deserializer.rb in representable-3.0.3 vs lib/representable/deserializer.rb in representable-3.0.4

- old
+ new

@@ -94,10 +94,10 @@ Stop = ->(*) { Pipeline::Stop } If = ->(input, options) { options[:binding].evaluate_option(:if, nil, options) ? input : Pipeline::Stop } StopOnExcluded = ->(input, options) do - return input unless private = options[:options] + return input unless options[:options] return input unless props = (options[:options][:exclude] || options[:options][:include]) res = props.include?(options[:binding].name.to_sym) # false with include: Stop. false with exclude: go! return input if options[:options][:include]&&res \ No newline at end of file