Class: PhlexForms::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/phlex_forms/engine.rb

Overview

Optional Rails integration. Loaded only when Rails::Engine is defined (see lib/phlex_forms.rb), so the gem stays a plain Phlex library outside Rails.

It wires up:

* the bundled Stimulus controllers (choices / searchable-select / tz) via
importmap-rails + the asset load path;
* the gem's default locale files (en/sv/de) prepended to I18n.load_path so
host apps can override any key.

Asset-and-locale-only engine: no isolate_namespace, since it exposes no routes, models, or helpers.

Constant Summary collapse

JAVASCRIPT_PATH =
root.join("app/javascript")