Sha256: 9ec7e5f7ff247dbc068e42af699218ab4893472de0656e5c861e1182391baad3
Contents?: true
Size: 537 Bytes
Versions: 66
Compression:
Stored size: 537 Bytes
Contents
# frozen_string_literal: true module Decidim module Log module ValueTypes # This class presents the given value as a currency. Check # the `DefaultPresenter` for more info on how value # presenters work. class CurrencyPresenter < DefaultPresenter # Public: Presents the value as a currency. # # Returns an HTML-safe String. def present return unless value h.number_to_currency(value, unit: Decidim.currency_unit) end end end end end
Version data entries
66 entries across 66 versions & 1 rubygems