Skip to content

Commit

Permalink
Add Deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Nov 21, 2023
1 parent 5dad6a3 commit cbb89f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/job-iteration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module JobIteration

INTEGRATIONS = [:resque, :sidekiq]

Deprecation = ActiveSupport::Deprecation.new("2.0", "JobIteration")

extend self

attr_writer :logger
Expand Down
3 changes: 3 additions & 0 deletions lib/job-iteration/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@

module JobIteration
class Railtie < Rails::Railtie
initializer "job_iteration.register_deprecator" do |app|
app.deprecators[:job_iteration] = JobIteration::Deprecation
end
end
end

0 comments on commit cbb89f8

Please sign in to comment.