From 969473db1073ef70196c7a6f7d63eb15c012aaa8 Mon Sep 17 00:00:00 2001 From: Alexander Pauly Date: Wed, 14 Sep 2011 11:05:59 +0200 Subject: [PATCH] Updated Readme --- Readme.markdown | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Readme.markdown b/Readme.markdown index 349bd75..af8e04e 100644 --- a/Readme.markdown +++ b/Readme.markdown @@ -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`: