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 []