set/abstract/05_search.rb in card-mod-search-0.11.2 vs set/abstract/05_search.rb in card-mod-search-0.11.3
- old
+ new
@@ -58,9 +58,13 @@
def count_with_params
@count_with_params ||= search_with_rescue search_params.merge(return: :count)
end
+ view :filtered_count, cache: :never do
+ count_with_params
+ end
+
def search_with_rescue query_args
rescuing_bad_query query_args do
card.cached_search query_args
end
end