spec/support/json_column.rb in thinking-sphinx-3.4.2 vs spec/support/json_column.rb in thinking-sphinx-4.0.0

- old
+ new

@@ -1,14 +1,16 @@ +# frozen_string_literal: true + class JSONColumn include ActiveRecord::ConnectionAdapters def self.call new.call end def call - ruby? && sphinx? && postgresql? && column? + ruby? && postgresql? && column? end private def column? @@ -27,11 +29,7 @@ ENV['DATABASE'] == 'postgresql' end def ruby? RUBY_PLATFORM != 'java' - end - - def sphinx? - ENV['SPHINX_VERSION'].nil? || ENV['SPHINX_VERSION'].to_f > 2.0 end end