Class: Slices::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Slices::Railtie
- Defined in:
- lib/slices/slices_engine.rb
Overview
We need to add the app’s own app/slices/* directories to the load path so that slices created within the application are automatically detected. This means that we need a Railtie as well as an engine, as an engine’s initializer can’t add autoload_paths that aren’t scoped within the engine itself (for some stupid reason).