From 27d49ba5e628a73fa303b8922f7dea5b9a2d0b67 Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Sun, 6 Nov 2011 11:43:29 +0100 Subject: [PATCH] Change the usage of lazy_helper by include Draper::LazyHelpers in generator template --- lib/generators/draper/decorator/templates/decorator.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generators/draper/decorator/templates/decorator.rb b/lib/generators/draper/decorator/templates/decorator.rb index 5072a49..dd6075d 100644 --- a/lib/generators/draper/decorator/templates/decorator.rb +++ b/lib/generators/draper/decorator/templates/decorator.rb @@ -7,8 +7,8 @@ class <%= singular_name.camelize %>Decorator < ApplicationDecorator # Normal Usage: helpers.number_to_currency(2) # Abbreviated : h.number_to_currency(2) # - # Or, optionally enable "lazy helpers" by calling this method: - # lazy_helpers + # Or, optionally enable "lazy helpers" by include this module : + # include Draper::LazyHelpers # Then use the helpers with no proxy: # number_to_currency(2)