Sha256: 922afd9b9a37bb7730635993c28ffc4aa03221ea73af97fe6fa11a464c732837
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
module ActiveAdmin module Inputs module Filters class DateTimeRangeInput < DateRangeInput include Base include ActiveAdminDatetimepicker::Base def input_html_options(input_name = gt_input_name, placeholder = gt_input_placeholder) super.tap do |options| options[:class] = html_class end end def gt_input_name column && column.type == :date ? super : "#{method}_gteq_datetime_picker" end def lt_input_name column && column.type == :date ? super : "#{method}_lteq_datetime_picker" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_admin_datetimepicker-0.7.3 | lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb |