Using Apotomo Widgets from an engine

lunks edited this page Jan 12, 2012 · 1 revision

In the current state, widget declarations works just fine from an engine. i.e. widgets in app/widgets loads just fine.

Views are currently only loaded from within your application. In order to load views from an engine, create an initializer in your app with:

Apotomo::Widget.append_view_path YourEngine::Engine.root + 'app/widgets'

That's it! Everything should work as intended.