Commit Graph

4 Commits

Author SHA1 Message Date
David Rodríguez da5ac7c7ce Fix warnings with recent thor versions
Otherwise running things like `bin/rails g --help` with `draper`
installed leads to warnings like this:

```
Expected string default value for '--decorator'; got true (boolean)
```

See https://github.com/erikhuda/thor/issues/538 for reference.
2017-02-25 10:56:32 -03:00
Frank Macreery 427d993631 Decorators generated via controller generator hooks have singular names 2014-06-02 19:05:08 -04:00
Azul 174c98f86f remove extra blank lines 2013-06-08 23:09:40 +02:00
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