lib/ransack/helpers/form_builder.rb in ransack-1.2.2 vs lib/ransack/helpers/form_builder.rb in ransack-1.2.3
- old
+ new
@@ -105,16 +105,12 @@
output
end
def predicate_select(options = {}, html_options = {})
options[:compounds] = true if options[:compounds].nil?
- if ::ActiveRecord::VERSION::STRING >= "4"
- default = options.delete(:default) || 'cont'
- else
- default = options.delete(:default) || 'eq'
- end
+ default = options.delete(:default) || 'cont'
- keys = options[:compounds] ? Predicate.names :
+ keys = options[:compounds] ? Predicate.names :
Predicate.names.reject { |k| k.match(/_(any|all)$/) }
if only = options[:only]
if only.respond_to? :call
keys = keys.select { |k| only.call(k) }
else