Class: UniRateRails::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- UniRateRails::Engine
- Defined in:
- lib/unirate_rails/engine.rb
Overview
Isolated, mountable Rails engine. Wiring it up does three things:
- Namespaces the engine so its routes/controllers don't collide with the host app.
- Mixes Helper into every ActionView render, exposing the
unirate_rate/unirate_convertview helpers.
Mount the JSON proxy controller from the host app's routes if you want a ready-made endpoint:
# config/routes.rb
mount UniRateRails::Engine => "/unirate"