Sha256: 09e7cccde689548d7bca6dc032474771b07fa0dfedd59a88a6e0fd10664fb584

Contents?: true

Size: 304 Bytes

Versions: 72

Compression:

Stored size: 304 Bytes

Contents

class DateRangePickerInput < DatePickerInput
  def data_attributes
    super.reverse_merge!(
      range_picker: range_picker?,
      start: self.options[:start],
      stop: self.options[:stop]
    )
  end

  def range_picker?
    self.options[:start].present? || self.options[:stop].present?
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
udongo-7.2.0 app/inputs/date_range_picker_input.rb
udongo-7.1.3 app/inputs/date_range_picker_input.rb
udongo-7.1.2 app/inputs/date_range_picker_input.rb
udongo-7.1.1 app/inputs/date_range_picker_input.rb
udongo-7.1.0 app/inputs/date_range_picker_input.rb
udongo-7.0.4 app/inputs/date_range_picker_input.rb
udongo-7.0.3 app/inputs/date_range_picker_input.rb
udongo-7.0.2 app/inputs/date_range_picker_input.rb
udongo-7.0.1 app/inputs/date_range_picker_input.rb
udongo-7.0.0 app/inputs/date_range_picker_input.rb
udongo-6.6.3 app/inputs/date_range_picker_input.rb
udongo-6.6.2 app/inputs/date_range_picker_input.rb
udongo-6.6.1 app/inputs/date_range_picker_input.rb
udongo-6.6.0 app/inputs/date_range_picker_input.rb
udongo-6.5.2 app/inputs/date_range_picker_input.rb
udongo-6.5.1 app/inputs/date_range_picker_input.rb
udongo-6.5.0 app/inputs/date_range_picker_input.rb
udongo-6.4.1 app/inputs/date_range_picker_input.rb
udongo-6.4.0 app/inputs/date_range_picker_input.rb
udongo-6.3.2 app/inputs/date_range_picker_input.rb