Sha256: 0019934dbd150bc039305aeeae9d2e305aa7bdb55abb2ef561a4e64009f2800a

Contents?: true

Size: 666 Bytes

Versions: 1

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true

require 'rails'

module Noid
  module Rails
    class Engine < ::Rails::Engine
      config.before_configuration do
        # rubocop:disable Style/IfUnlessModifier

        # see https://github.com/fxn/zeitwerk#for_gem
        # Blacklight puts a generator into LOCAL APP lib/generators, so tell
        # zeitwerk to ignore the whole directory? If we're using zeitwerk
        #
        # See: https://github.com/cbeer/engine_cart/issues/117
        if ::Rails.try(:autoloaders).try(:main).respond_to?(:ignore)
          ::Rails.autoloaders.main.ignore(::Rails.root.join('lib', 'generators'))
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noid-rails-3.2.0 lib/noid/rails/engine.rb