1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
Commit graph

6 commits

Author SHA1 Message Date
Azul
cd4f298987 hook in 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.
2013-06-07 21:42:50 +02:00
Vasiliy Ermolovich
49f01d9086 rework generators 2012-04-28 23:02:22 +03:00
Vasiliy Ermolovich
24ba88eb1c add new lines 😓 2012-04-25 23:12:30 +03:00
Steve Klabnik
56ce55addb Zomg removing trailing whitespace. 2012-02-13 10:24:31 -05:00
Alexander Pauly
94ecaaf643 Added callback to the generator to enable chaining 2011-09-14 19:57:16 +02:00
Alexander Pauly
00cec639c0 Added hook for replacing helper generator 2011-09-14 11:06:43 +02:00