From ef9208027bf6dd9a4621264284f44d97618c48ab Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Mon, 25 Aug 2014 14:42:12 +0200 Subject: [PATCH] Follow-up to #405: rename case insensitive queries icon => i_cont inot_cont => i_not_cont --- lib/ransack/constants.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ransack/constants.rb b/lib/ransack/constants.rb index 0ba488f..b8a9838 100644 --- a/lib/ransack/constants.rb +++ b/lib/ransack/constants.rb @@ -12,7 +12,7 @@ module Ransack :formatter => proc { |v| "%#{escape_wildcards(v)}%" } } ], - ['icont', { + ['i_cont', { :arel_predicate => 'i_matches', :formatter => proc { |v| "%#{escape_wildcards(v)}%" } } @@ -22,7 +22,7 @@ module Ransack :formatter => proc { |v| "%#{escape_wildcards(v)}%" } } ], - ['inot_cont', { + ['i_not_cont', { :arel_predicate => 'i_does_not_match', :formatter => proc { |v| "%#{escape_wildcards(v)}%" } }