drapergem/draper — pull request #553 by azul (2013-06-07 19:36:51+00:00)
Title: hook generator from controller generator

* 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.