lib/builder/mongo_helpers.rb in sinatra_resource-0.4.18 vs lib/builder/mongo_helpers.rb in sinatra_resource-0.4.19

- old
+ new

@@ -368,9 +368,10 @@ filter_string = params[FILTER_KEY] if search_string && filter_string error 400, convert(body_for(:invalid_params, [FILTER_KEY])) elsif search_string words = search_string.downcase.split(" ") + log_event(:search, words) { :_keywords => { '$all' => words } } elsif filter_string begin unsafe = QS_FILTER.parse(filter_string) sanitize(unsafe, model)