Class: ShadcnViewComponent::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- ShadcnViewComponent::Engine
- Defined in:
- lib/shadcn_view_component/engine.rb
Overview
Rails engine wiring.
app/components is picked up automatically as an autoload/eager-load root
by the app/{*,*/concerns} glob every Rails::Engine declares, so
app/components/shadcn/card/component.rb resolves to Shadcn::Card::Component
with no extra configuration. Nesting everything under shadcn/ keeps names
such as Card, Table or Field out of the host application's top level,
where they would clash with its own models.
Constant Summary collapse
- COMPONENTS_PATH =
"app/components".freeze