Sha256: 5c782bb9037e5877a48a4e59904c9437771b927179d6f25fdc5fc74059f9c766
Contents?: true
Size: 493 Bytes
Versions: 26
Compression:
Stored size: 493 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
26 entries across 26 versions & 1 rubygems