Sha256: 9a78682ec3506b5d39f7a90c762c4a59ab91310ac18a8e8f4ed2ff205242532a

Contents?: true

Size: 672 Bytes

Versions: 15

Compression:

Stored size: 672 Bytes

Contents

# Exception raised when a `Rails::Engine` has left its `'app/concerns'` path as `autoload_load: false`
class Metasploit::Concern::Error::SkipAutoload < Metasploit::Concern::Error::Base
  # @param engine [Rails::Engine] `Rails::Engine` where `engine.paths['app/concerns'].autoload?` is `false`.
  def initialize(engine)
    @engine = engine
    engine_name = engine.class.name
    super(
        "#{engine_name}'s `app/concerns` is marked as `autoload: false`.  Declare `app/concerns` as autoloading:\n" \
        "\n" \
        "  class #{engine_name} < Rails::Engine\n" \
        "    config.paths.add 'app/concerns', autoload: true\n" \
        "  end\n"
    )
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
metasploit-concern-5.0.4 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-5.0.3 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-5.0.2 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-5.0.1 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-5.0.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-4.0.5 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-4.0.4 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-4.0.3 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-4.0.2 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-4.0.1 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-4.0.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-3.0.2 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-3.0.1 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-3.0.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-2.0.5 lib/metasploit/concern/error/skip_autoload.rb