lib/eco/api/usecases/graphql/helpers/location/base/classifications_parser.rb in eco-helpers-3.0.11 vs lib/eco/api/usecases/graphql/helpers/location/base/classifications_parser.rb in eco-helpers-3.0.12

- old
+ new

@@ -20,10 +20,11 @@ end end def to_classification_ids(values) values = [values].flatten unless values.is_a?(Array) - values.compact.map {|val| to_classification(val)}.compact + values = values.compact.map {|val| val.split('|')}.flatten + values.compact.map {|val| to_classification(val)}.compact.uniq end # @note # 1. It returns `nil` unless there are classifications defined # 2. If the value is wrong, it warns and returns `nil`