Sha256: 4eb5f04e91474c7d13a889c7ec8f7d35020f23f6b779deb61b7b53689dba0480
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 Bytes
Contents
module EgovUtils module Helpers module Tags module DatetimeFieldPatch def render pickerize_options! if @options.stringify_keys['datetimepicker'] super end protected def pickerize_options! options = @options.stringify_keys picker_data = {'provide' => 'datepicker', 'date-min-date' => format_date(datetime_value(options["min"])), 'date-max-date' => format_date(datetime_value(options["min"])) } @options[:data] = picker_data.merge(options['data'] || {}) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems