From 30452c9ad49933a1389fc9a41349d064a886fbf0 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 27 Jun 2012 11:19:37 -0400 Subject: [PATCH] update comment in generator. You'd get an infinite loop with the current one --- lib/generators/decorator/templates/decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/decorator/templates/decorator.rb b/lib/generators/decorator/templates/decorator.rb index e3d3a8b..5788cb7 100644 --- a/lib/generators/decorator/templates/decorator.rb +++ b/lib/generators/decorator/templates/decorator.rb @@ -27,7 +27,7 @@ class <%= class_name %>Decorator < <%= parent_class_name %> # generated by ActiveRecord: # # def created_at - # h.content_tag :span, time.strftime("%a %m/%d/%y"), + # h.content_tag :span, attributes["created_at"].strftime("%a %m/%d/%y"), # :class => 'timestamp' # end end