Sha256: 79de6fda47da20bef12b7929aeb0c34a7ee3513b40b143cb775fd35c90443efe

Contents?: true

Size: 511 Bytes

Versions: 34

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

# The actual (private) implementation of the Rake task zeitwerk:check.
class Rails::ZeitwerkChecker # :nodoc:
  def self.check
    Zeitwerk::Loader.eager_load_all

    autoloaded = ActiveSupport::Dependencies.autoload_paths + ActiveSupport::Dependencies.autoload_once_paths
    eager_loaded = ActiveSupport::Dependencies._eager_load_paths.to_a

    unchecked = autoloaded - eager_loaded
    unchecked.select! { |dir| Dir.exist?(dir) && !Dir.empty?(dir)  }
    unchecked
  end
end

Version data entries

34 entries across 34 versions & 5 rubygems

Version Path
railties-7.1.4 lib/rails/zeitwerk_checker.rb
railties-7.2.1 lib/rails/zeitwerk_checker.rb
railties-7.2.0 lib/rails/zeitwerk_checker.rb
railties-7.2.0.rc1 lib/rails/zeitwerk_checker.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/railties-7.1.3.4/lib/rails/zeitwerk_checker.rb
railties-7.2.0.beta3 lib/rails/zeitwerk_checker.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/railties-7.1.3.4/lib/rails/zeitwerk_checker.rb
railties-7.2.0.beta2 lib/rails/zeitwerk_checker.rb
railties-7.1.3.4 lib/rails/zeitwerk_checker.rb
railties-7.2.0.beta1 lib/rails/zeitwerk_checker.rb
railties-7.1.3.2 lib/rails/zeitwerk_checker.rb
railties-7.1.3.1 lib/rails/zeitwerk_checker.rb
railties-7.1.3 lib/rails/zeitwerk_checker.rb
railties-7.1.2 lib/rails/zeitwerk_checker.rb