Sha256: e0ebd4666d873c046339b70aa020f74fc04d76d7b2cd065162a56aa27d466710
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
# frozen_string_literal: true module Wallaby module Resources module Index # Html cell class DateHtml < Cell # @return [String] def render if value.nil? null else self.value = Time.zone.parse value if value.is_a? String self.value = value.to_date if value.is_a? Time I18n.l value end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wallaby-6.0.2 | app/views/wallaby/resources/index/date_html.rb |
wallaby-6.0.1 | app/views/wallaby/resources/index/date_html.rb |