We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Deprecation
1 parent 3d46f58 commit a997d01Copy full SHA for a997d01
lib/job-iteration.rb
@@ -12,6 +12,8 @@ module JobIteration
12
13
INTEGRATIONS = [:resque, :sidekiq]
14
15
+ Deprecation = ActiveSupport::Deprecation.new("2.0", "JobIteration")
16
+
17
extend self
18
19
attr_writer :logger
lib/job-iteration/railtie.rb
@@ -4,5 +4,9 @@
4
5
module JobIteration
6
class Railtie < Rails::Railtie
7
+ initializer "job_iteration.register_deprecator" do |app|
8
+ # app.deprecators was added in Rails 7.1
9
+ app.deprecators[:job_iteration] = JobIteration::Deprecation if app.respond_to?(:deprecators)
10
+ end
11
end
0 commit comments