From 1ef58d649601601c13720df4e4298b4fff5663f8 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Mon, 13 Jan 2014 00:59:37 -0600 Subject: [PATCH] search: fix busted scope introduced in sphinx update --- app/models/search.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/search.rb b/app/models/search.rb index 5192d4c..b5c7f33 100644 --- a/app/models/search.rb +++ b/app/models/search.rb @@ -51,9 +51,9 @@ class Search opts[:classes] = case what when "all" [ Story, Comment ] - when what == "comments" + when "comments" [ Comment ] - when what == "stories" + when "stories" [ Story ] else []