Sha256: cede5e7a72dd9822879c73bc286112fba93fc547b4583338cf20fe79f7caaf59
Contents?: true
Size: 494 Bytes
Versions: 64
Compression:
Stored size: 494 Bytes
Contents
# frozen_string_literal: true module Decidim module Log module ValueTypes # This class presents the given value as a date. Check # the `DefaultPresenter` for more info on how value # presenters work. class DatePresenter < DefaultPresenter # Public: Presents the value as a date. # # Returns an HTML-safe String. def present return unless value h.l(value, format: :long) end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems