lib/good_job.rb in good_job-3.15.6 vs lib/good_job.rb in good_job-3.15.7
- old
+ new
@@ -221,7 +221,16 @@
break unless result
raise result.unhandled_error if result.unhandled_error
end
end
+ # Deprecator for providing deprecation warnings.
+ # @return [ActiveSupport::Deprecation]
+ def self.deprecator
+ @_deprecator ||= begin
+ next_major_version = GEM_VERSION.segments[0] + 1
+ ActiveSupport::Deprecation.new("#{next_major_version}.0", "GoodJob")
+ end
+ end
+
ActiveSupport.run_load_hooks(:good_job, self)
end