Revert escaping of underscore characater from #171

Related to #176
This commit is contained in:
Ryan Bigg 2012-12-18 15:52:44 +11:00
parent bc686269cd
commit 71a3938a1c
1 changed files with 3 additions and 3 deletions

View File

@ -21,9 +21,9 @@ module Ransack
]
module_function
# replace % _ \ to \% \_ \\
# replace % \ to \% \\
def escape_wildcards(unescaped)
unescaped.gsub(/\\/){ "\\\\" }.gsub(/%/, "\\%").gsub(/_/, "\\_")
unescaped.gsub(/\\/){ "\\\\" }.gsub(/%/, "\\%")
end
end
end
end