Sha256: 0c29feb9f5681fe1645184c0192f961f6a4dd4f398269e31228d0db918605c31
Contents?: true
Size: 261 Bytes
Versions: 18
Compression:
Stored size: 261 Bytes
Contents
module Compony module ModelFields class Datetime < Base def value_for(data, controller: nil, format: nil, **_) return transform_and_join(data.send(@name), controller:) { |el| el.nil? ? nil : I18n.l(el, format:) } end end end end
Version data entries
18 entries across 18 versions & 1 rubygems