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

Updated Readme

This commit is contained in:
Alexander Pauly 2011-09-14 11:05:59 +02:00
parent 62d80310f4
commit 969473db10

View file

@ -135,9 +135,19 @@ config.generators do |g|
g.helper false
end
```
If you want a helper, you can still call `rails generate helper` directly.
#### Replace Rails Helper Generation with Decorator Generation (Optional)
If you want to completely replace the helper generation with the decorator generator, just add this to your `config/application.rb`
```ruby
config.generators do |g|
g.helper :decorator
end
```
### Generate the Decorator
To decorate a model named `Article`: