module Ransack::Configuration
def strip_whitespace=(boolean)
end
config.strip_whitespace = true
# Enable whitespace stripping for string searches
Ransack.configure do |config|
`config/initializers/ransack.rb` as follows:
The default may be globally changed in an initializer file like
By default, Ransack displays strips all whitespace when searching for a string.
def strip_whitespace=(boolean) self.options[:strip_whitespace] = boolean end