Sha256: fcbe8c397efb33214ad64e9c50307432b3981a53137bc718d4e6e55283b474ce

Contents?: true

Size: 222 Bytes

Versions: 6

Compression:

Stored size: 222 Bytes

Contents

# frozen_string_literal: true

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

      time_tag(date_or_time, *args, &block)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
panoptic-0.5.0 app/helpers/panoptic/date_time_helper.rb
panoptic-0.4.2 app/helpers/panoptic/date_time_helper.rb
panoptic-0.4.1 app/helpers/panoptic/date_time_helper.rb
panoptic-0.4.0 app/helpers/panoptic/date_time_helper.rb
panoptic-0.3.0 app/helpers/panoptic/date_time_helper.rb
panoptic-0.2.0 app/helpers/panoptic/date_time_helper.rb