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

Added blurb about turning off the automatic calling of the helper generator from other generators

This commit is contained in:
Mel Riffe 2011-07-29 14:38:58 -04:00
parent f02af58b7c
commit 4b52813c1b

View file

@ -122,6 +122,20 @@ Run bundle:
bundle bundle
``` ```
#### Optional
Turn off helper creation in your `config/application.rb`
```
config.generators do |g|
g.helper false
end
```
This turns off the helper call backs in generators that normally
crate helpers (e.g. scaffold and controller) You will still be able to
call `rails generate helper` directly.
### Generate the Decorator ### Generate the Decorator
To decorate a model named `Article`: To decorate a model named `Article`: