app/controllers/search_controller.rb in social_stream-base-0.9.1 vs app/controllers/search_controller.rb in social_stream-base-0.9.2

- old
+ new

@@ -2,11 +2,11 @@ #before_filter :authenticate_user! #?? def index if params[:mode].eql? "header_search" - @search_result = Actor.search "*#{params[:id]}*", :page => 1, :per_page => 10 - render :partial => "header_search", :locals =>{:search_result => @search_result} + @search_result = ThinkingSphinx.search "*#{params[:id]}*", :page => 1, :per_page => 10, :classes => [User, Group] + render :partial => "header_search", :locals => {:search_result => @search_result} return else @search_result = ThinkingSphinx.search "*#{params[:id]}*" end end