lib/supernova/criteria.rb in supernova-0.3.4 vs lib/supernova/criteria.rb in supernova-0.3.5
- old
+ new
@@ -124,9 +124,12 @@
def merge_filters_or_search_options(reference, key, value)
if value.is_a?(Hash)
reference[key] ||= Hash.new
reference[key].merge!(value)
+ elsif key == :select
+ reference[key] ||= Array.new
+ reference[key] += (value || [])
else
reference[key] = value
end
self
end
\ No newline at end of file