lib/card/query.rb in card-1.93.5 vs lib/card/query.rb in card-1.93.6

- old
+ new

@@ -76,11 +76,11 @@ .each_with_object({}) { |v, h| h[v.to_sym] = nil } OPERATORS = %w(!= = =~ < > in ~).each_with_object({}) { |v, h| h[v] = v }.merge( { - eq: "=", gt: ">", lt: "<", match: "~", ne: "!=", "not in" => nil + eq: "=", gt: ">", lt: "<", match: "~", ne: "!=", "not in": "not in" }.stringify_keys ) DEFAULT_ORDER_DIRS = { update: "desc", relevance: "desc" }.freeze @@ -150,9 +150,13 @@ @context = @superquery ? @superquery.context : "" end end def limit - @mods[:limit].to_i + mods[:limit].to_i + end + + def full? + !superquery && mods[:return] != "count" end end end