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:
parent
c0b05bf449
commit
c5ab592326
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue