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

Use h. proxy in examples

This commit is contained in:
Jeff Casimir 2011-07-29 20:36:38 -05:00
parent c0b05bf449
commit c5ab592326
2 changed files with 4 additions and 4 deletions

View file

@ -14,8 +14,8 @@ class ApplicationDecorator < Draper::Base
# Example: standardize the formatting of timestamps
#
# def formatted_timestamp(time)
# content_tag :span, time.strftime("%a %m/%d/%y"),
# :class => 'timestamp'
# h.content_tag :span, time.strftime("%a %m/%d/%y"),
# :class => 'timestamp'
# end
#
# def created_at

View file

@ -26,7 +26,7 @@ class <%= singular_name.camelize %>Decorator < ApplicationDecorator
# generated by ActiveRecord:
#
# def created_at
# content_tag :span, time.strftime("%a %m/%d/%y"),
# :class => 'timestamp'
# h.content_tag :span, time.strftime("%a %m/%d/%y"),
# :class => 'timestamp'
# end
end