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:
parent
f02af58b7c
commit
4b52813c1b
1 changed files with 15 additions and 1 deletions
|
@ -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`:
|
||||||
|
|
Loading…
Add table
Reference in a new issue