lib/mobility/backends/sequel/query_methods.rb in mobility-0.5.1 vs lib/mobility/backends/sequel/query_methods.rb in mobility-0.6.0

- old
+ new

@@ -23,9 +23,14 @@ end def extract_attributes(cond) cond.is_a?(Hash) && Util.presence(cond.keys & @attributes) end + + def collapse(value) + value.is_a?(Array) ? value.uniq : value + end end + private_constant :QueryMethods end end end