Sha256: db32f0501abdf6c8013b9ba48f5442ee79b3dbe5a56b65654b1cdc7895116b9b

Contents?: true

Size: 349 Bytes

Versions: 4

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

return unless defined?(Rails::Railtie)

module JobIteration
  class Railtie < Rails::Railtie
    initializer "job_iteration.register_deprecator" do |app|
      # app.deprecators was added in Rails 7.1
      app.deprecators[:job_iteration] = JobIteration::Deprecation if app.respond_to?(:deprecators)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
job-iteration-1.7.0 lib/job-iteration/railtie.rb
job-iteration-1.6.0 lib/job-iteration/railtie.rb
job-iteration-1.5.1 lib/job-iteration/railtie.rb
job-iteration-1.5.0 lib/job-iteration/railtie.rb