Module: Panoptic::DateTimeHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/panoptic/date_time_helper.rb

Instance Method Summary collapse

Instance Method Details

#safe_time_tag(date_or_time, *args, &block) ⇒ Object



5
6
7
8
9
# File 'app/helpers/panoptic/date_time_helper.rb', line 5

def safe_time_tag(date_or_time, *args, &block)
  return "-" unless date_or_time

  time_tag(date_or_time, *args, &block)
end