Sha256: bc4ad5ce73d79c9ead16dae18b437b36a468326429e678a856a3cb1db02e562a
Contents?: true
Size: 419 Bytes
Versions: 5
Compression:
Stored size: 419 Bytes
Contents
module Formulaic module Inputs class DateTimeInput < DateInput def fill select_date(value, from: label) end private def select_date(date_time, options) super field = find_field(options[:from].to_s)["id"].gsub(/_\di/, "") select date_time.hour.to_s, from: "#{field}_4i" select date_time.minute.to_s, from: "#{field}_5i" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems