Skip to content

Commit

Permalink
search: fix busted scope introduced in sphinx update
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs committed Jan 13, 2014
1 parent da560f1 commit 1ef58d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def search_for_user!(user)
opts[:classes] = case what
when "all"
[ Story, Comment ]
when what == "comments"
when "comments"
[ Comment ]
when what == "stories"
when "stories"
[ Story ]
else
[]
Expand Down

0 comments on commit 1ef58d6

Please sign in to comment.