mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00
Remove trailing whitespace from application_decorator template
This commit is contained in:
parent
78b200a84f
commit
6d1bc13962
1 changed files with 6 additions and 6 deletions
|
@ -4,24 +4,24 @@ class ApplicationDecorator < Draper::Base
|
|||
# ex: number_to_currency(model.price)
|
||||
# CON: Add a bazillion methods into your decorator's namespace
|
||||
# and probably sacrifice performance/memory
|
||||
#
|
||||
#
|
||||
# Enable them by uncommenting this line:
|
||||
# lazy_helpers
|
||||
|
||||
# Shared Decorations
|
||||
# Consider defining shared methods common to all your models.
|
||||
#
|
||||
#
|
||||
# Example: standardize the formatting of timestamps
|
||||
#
|
||||
# def formatted_timestamp(time)
|
||||
# h.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
|
||||
# formatted_timestamp(model.created_at)
|
||||
# end
|
||||
#
|
||||
#
|
||||
# def updated_at
|
||||
# formatted_timestamp(model.updated_at)
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue