Sha256: 0ccaef5be3b5f9c4b0d6b0bafcf7272710e55f81f9868241f034bc035bd1ccfa

Contents?: true

Size: 496 Bytes

Versions: 28

Compression:

Stored size: 496 Bytes

Contents

module Schemacop
  class Railtie < Rails::Railtie
    initializer 'schemacop' do
      # Load global schemas
      unless Rails.env.development?
        V3::GlobalContext.eager_load!
      end

      # Tell Zeitwerk to ignore the files in our load path
      if defined?(Rails) && defined?(Zeitwerk) && Rails.autoloaders.zeitwerk_enabled?
        Schemacop.load_paths.each do |load_path|
          Rails.autoloaders.main.ignore(Rails.root.join(load_path))
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
schemacop-3.0.29 lib/schemacop/railtie.rb
schemacop-3.0.28 lib/schemacop/railtie.rb
schemacop-3.0.27 lib/schemacop/railtie.rb
schemacop-3.0.26 lib/schemacop/railtie.rb
schemacop-3.0.25 lib/schemacop/railtie.rb
schemacop-3.0.24 lib/schemacop/railtie.rb
schemacop-3.0.23 lib/schemacop/railtie.rb
schemacop-3.0.22 lib/schemacop/railtie.rb
schemacop-3.0.21 lib/schemacop/railtie.rb
schemacop-3.0.20 lib/schemacop/railtie.rb
schemacop-3.0.19 lib/schemacop/railtie.rb
schemacop-3.0.18 lib/schemacop/railtie.rb
schemacop-3.0.17 lib/schemacop/railtie.rb
schemacop-3.0.16 lib/schemacop/railtie.rb
schemacop-3.0.15 lib/schemacop/railtie.rb
schemacop-3.0.14 lib/schemacop/railtie.rb
schemacop-3.0.13 lib/schemacop/railtie.rb
schemacop-3.0.12 lib/schemacop/railtie.rb
schemacop-3.0.11 lib/schemacop/railtie.rb
schemacop-3.0.10 lib/schemacop/railtie.rb