diff --git a/lib/sphinx_search/radius_tags.rb b/lib/sphinx_search/radius_tags.rb index e2fe0cc..0a7eda8 100644 --- a/lib/sphinx_search/radius_tags.rb +++ b/lib/sphinx_search/radius_tags.rb @@ -87,5 +87,11 @@ module RadiusTags tag.expand if tag.locals.results.empty? end + desc %{ + Renders if no results were returned. + } + tag 'results:unless_empty' do |tag| + tag.expand unless tag.locals.results.empty? + end end end \ No newline at end of file