Merge pull request #76 from shingara/patch-1
Change the usage of lazy_helper by include Draper::LazyHelpers in generat
This commit is contained in:
commit
78b200a84f
|
@ -7,8 +7,8 @@ class <%= singular_name.camelize %>Decorator < ApplicationDecorator
|
||||||
# Normal Usage: helpers.number_to_currency(2)
|
# Normal Usage: helpers.number_to_currency(2)
|
||||||
# Abbreviated : h.number_to_currency(2)
|
# Abbreviated : h.number_to_currency(2)
|
||||||
#
|
#
|
||||||
# Or, optionally enable "lazy helpers" by calling this method:
|
# Or, optionally enable "lazy helpers" by include this module :
|
||||||
# lazy_helpers
|
# include Draper::LazyHelpers
|
||||||
# Then use the helpers with no proxy:
|
# Then use the helpers with no proxy:
|
||||||
# number_to_currency(2)
|
# number_to_currency(2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue