Sha256: e93b1c0f8154a66d947557d01ca237706fa85c1208259ffd5f7ca9f62dae08e6

Contents?: true

Size: 627 Bytes

Versions: 12

Compression:

Stored size: 627 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

    super(
        "#{engine}'s `app/concerns` is marked as `autoload: false`.  Declare `app/concerns` as autoloading:\n" \
        "\n" \
        "  class #{engine} < Rails::Engine\n" \
        "    config.paths.add 'app/concerns', autoload: true\n" \
        "  end\n"
    )
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
metasploit-concern-2.0.4 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-2.0.3 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-2.0.2 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-2.0.1 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-2.0.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-1.1.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-1.0.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-1.0.0.pre.rails.pre.4.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-0.5.1 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-0.5.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-0.4.0 lib/metasploit/concern/error/skip_autoload.rb
metasploit-concern-0.4.0.pre.app.pre.concerns.pre.eager.pre.load lib/metasploit/concern/error/skip_autoload.rb