Sha256: 1057add90575d59ca55076a8741c29fba41b0de40e40233f4e169fad612d3665
Contents?: true
Size: 261 Bytes
Versions: 1
Compression:
Stored size: 261 Bytes
Contents
# frozen_string_literal: true module Granite module Form module Types class Date < Object private def typecast(value) value.try(:to_date) rescue ArgumentError nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
granite-form-0.6.0 | lib/granite/form/types/date.rb |