Sha256: add5d793687e5d142b52cc10fac559676c60e98d535c028130ecec16e1484746

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

module ValidatesTimeliness
  module Extensions
    autoload :DateTimeSelect, 'validates_timeliness/extensions/date_time_select'
  end

  def self.enable_date_time_select_extension!
    require 'uri' # Do we need this? No, but the test suite fails without it.
    ::ActionView::Helpers::Tags::DateSelect.send(:prepend, ValidatesTimeliness::Extensions::DateTimeSelect)
  end

  def self.enable_multiparameter_extension!
    require 'validates_timeliness/extensions/multiparameter_handler'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
validates_timeliness-8.0.0.beta1 lib/validates_timeliness/extensions.rb
validates_timeliness-7.0.0 lib/validates_timeliness/extensions.rb