lib/searchkick.rb in searchkick-1.3.0 vs lib/searchkick.rb in searchkick-1.3.1
- old
+ new
@@ -57,10 +57,10 @@
def self.server_version
@server_version ||= client.info["version"]["number"]
end
def self.server_below?(version)
- Gem::Version.new(server_version) < Gem::Version.new(version)
+ Gem::Version.new(server_version.sub("-", ".")) < Gem::Version.new(version.sub("-", "."))
end
def self.enable_callbacks
self.callbacks_value = nil
end