lib/eco/api/common/people/default_parsers/boolean_parser.rb in eco-helpers-1.3.1 vs lib/eco/api/common/people/default_parsers/boolean_parser.rb in eco-helpers-1.3.2
- old
+ new
@@ -16,10 +16,10 @@
end
private
def truthy (value)
- %w[true y yes x].include?(value.to_s&.downcase)
+ %w[true y yes x].include?(value.to_s.strip.downcase)
end
end
end
end
end