Sha256: 4c99739e02b55ffcec816b6d3983a5b0a1d1e709111f1eaf6d9f9a7b24a616e2
Contents?: true
Size: 382 Bytes
Versions: 14
Compression:
Stored size: 382 Bytes
Contents
module ActiveAdmin module Inputs class DatepickerInput < ::Formtastic::Inputs::StringInput def input_html_options options = super value = object.send(method) options[:class] = [options[:class], "datepicker"].compact.join(' ') options[:value] = value.blank? ? '' : value.strftime("%d.%m.%Y") options end end end end
Version data entries
14 entries across 14 versions & 1 rubygems