Class: Bootinq::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/bootinq/railtie.rb

Overview

Require bootinq/railtie in the before_configuration block of your application definition to allow load component-scoped config paths only when the named component is enabled:

  • config/routes.rbconfig/routes.component.rb
  • config/localesconfig/locales.component
  • config/initializersconfig/initializers.component

It doesn't affect on the default paths without suffix.

Examples:

# config/application.rb
module Example
  class Application < Rails::Application
    config.before_configuration do
      require 'bootinq/railtie'
    end
  end
end