1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/spec
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
..
draper Improve aliasing to object class name 2013-06-02 21:23:08 +01:00
dummy Only define MongoidPostDecorator when using Mongoid 2013-06-02 21:23:08 +01:00
generators/decorator hook in generator from controller generator 2013-06-07 21:42:50 +02:00
integration Prevent leaking view contexts between tests 2013-01-19 21:55:57 +00:00
performance Don't generate #decorates. 2012-11-29 17:22:39 -08:00
support Rename source to object 2013-04-30 14:10:52 +01:00
spec_helper.rb Revert "Merge pull request #480 from urbanautomaton/decorator-namespace-option" 2013-03-10 09:27:12 +01:00