Sha256: 6729fec8966d2955bdccaa9e1f1680d1cbfc6e71ba7c2f6d72820817597c2b22

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module IsThisUsed
  class Railtie < Rails::Railtie
    initializer "is_this_used_railtie.configure_post_initialize_cleanup" do

      config.after_initialize do
        if Rails.application.config.eager_load
          IsThisUsed::CruftCleaner.clean🧹
        end
      end

    rescue StandardError
      # Swallow all errors to prevent initialization failures.
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
is_this_used-0.1.14 lib/is_this_used/railtie.rb
is_this_used-0.1.13 lib/is_this_used/railtie.rb
is_this_used-0.1.12 lib/is_this_used/railtie.rb
is_this_used-0.1.11 lib/is_this_used/railtie.rb
is_this_used-0.1.10 lib/is_this_used/railtie.rb