Skip to content

Commit

Permalink
Try convert query params to_ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
Brice Sanchez committed Sep 23, 2016
1 parent 50a996e commit ddcd93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/refinery/search/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class SearchController < ::ApplicationController
before_action :find_page

def show
@results = Refinery::Search::SearchEngine.search(params[:query])
@results = Refinery::Search::SearchEngine.search(params[:query].try(:to_ascii))
@results = @results.paginate(page: params[:page], per_page: Refinery::Search.results_per_page)
end

Expand Down

0 comments on commit ddcd93a

Please sign in to comment.