Class: SMEditor::Rails::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SMEditor::Rails::Engine
- Defined in:
- lib/smeditor/rails/engine.rb
Overview
Rails::Engine subclass — the gem's plumbing.
It does three things and nothing more (per PLAN.md the gem stays a thin adapter):
1. Isolates the SMEditor namespace so routes / controllers
don't collide with the host app.
2. Mixes the view helpers into ActionView.
3. Adds smeditor_editor to the form builder.
The upload route lives in config/routes.rb and is mounted by the
host with mount SMEditor::Rails::Engine => "/smeditor".