mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
cd4f298987
* use hook instead of invoke so it's easy to configure * hook into controller_generator and scaffold_controller_generator This feels more natural than invoking from the resource generator. Decorators are closely related to controllers, views and helpers. So they should be generated in that context. If controller generation is disabled for say generating resources there is no point in creating decorators. |
||
---|---|---|
.. | ||
decorator.rb |