We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be858a commit b4ef412Copy full SHA for b4ef412
lib/mongoid_filters.rb
@@ -11,7 +11,7 @@ def filter(attrs)
11
12
def filter_criteria(filters = nil)
13
f = {}
14
- if filters
+ if filters.present?
15
filters.each_pair do |k,v|
16
match = k.match(/\b(\w*)_(gte|lte|eq)\b/)
17
if match[2] == "eq"
0 commit comments