app/controllers/search_controller.rb in social_stream-base-2.2.1 vs app/controllers/search_controller.rb in social_stream-base-2.2.2

- old
+ new

@@ -33,21 +33,21 @@ params[:type].present? ? { params[:type].pluralize => @search_result } : @search_result ) - render :json => json_obj + render :json => json_obj.as_json(helper: self) } format.js end end private def search mode - page = ( mode == "quick" ? 1 : params[:page] ) - limit = ( mode == "quick" ? 7 : RESULTS_SEARCH_PER_PAGE ) + page = ( mode == :quick ? 1 : params[:page] ) + limit = ( mode == :quick ? 7 : RESULTS_SEARCH_PER_PAGE ) SocialStream::Search.search(params[:q], current_subject, mode: mode, key: params[:type],