lib/querifier/queries/where.rb in querifier-0.1.0 vs lib/querifier/queries/where.rb in querifier-0.1.1
- old
+ new
@@ -7,10 +7,11 @@
@collection
end
def filter
return self if @filtered
- filter_params.each do |(attribute, value)|
+ filter_params.each do |attribute|
+ value = filter_value(attribute)
send("filter_by_#{attribute}", value) if value
end
@filtered = true
self
end