about summary refs log tree commit diff
path: root/app/helpers/search_helper.rb
blob: 0f3d09c3653b6d6f59bc2d649372933f36519739 (plain) (blame)
1
2
3
4
5
6
7
require 'sixarm_ruby_unaccent'

module SearchHelper
	def expand_search_query(query)
    query.downcase.unaccent.gsub(/"(.*)"/, '\\y\1\\y')
  end
end