lib/rocket_job/rocket_job.rb in rocketjob-6.2.0 vs lib/rocket_job/rocket_job.rb in rocketjob-6.3.0

- old
+ new

@@ -56,5 +56,8 @@ def self.rails! @rails = true end end + +# Slice is a reserved word in Rails 7, but already being used in RocketJob long before that. +Mongoid.destructive_fields.delete(:slice) if Mongoid.respond_to?(:destructive_fields)