Sha256: 22aaba37f4159028302331c29e062c7ba7acfb4ce9a74847653ef91c9d186e7c

Contents?: true

Size: 527 Bytes

Versions: 6

Compression:

Stored size: 527 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
          "#{method}_gteq"
        end

        def lt_input_name
          "#{method}_lteq"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_admin_datetimepicker-0.7.1 lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb
active_admin_datetimepicker-0.7.0 lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb
active_admin_datetimepicker-0.6.3 lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb
active_admin_datetimepicker-0.6.2 lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb
active_admin_datetimepicker-0.6.1 lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb
active_admin_datetimepicker-0.6.0 lib/active_admin_datetimepicker/inputs/filters/date_time_range_input.rb