File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
module ValidatesTimeliness
2
2
module Extensions
3
- autoload :TimelinessDateTimeSelect , 'validates_timeliness/extensions/date_time_select'
3
+ autoload :DateTimeSelect , 'validates_timeliness/extensions/date_time_select'
4
4
end
5
5
6
6
def self . enable_date_time_select_extension!
7
7
require 'uri' # Do we need this? No, but the test suite fails without it.
8
- ::ActionView ::Helpers ::Tags ::DateSelect . send ( :prepend , ValidatesTimeliness ::Extensions ::TimelinessDateTimeSelect )
8
+ ::ActionView ::Helpers ::Tags ::DateSelect . send ( :prepend , ValidatesTimeliness ::Extensions ::DateTimeSelect )
9
9
end
10
10
11
11
def self . enable_multiparameter_extension!
Original file line number Diff line number Diff line change 1
1
module ValidatesTimeliness
2
2
module Extensions
3
- module TimelinessDateTimeSelect
3
+ module DateTimeSelect
4
4
# Intercepts the date and time select helpers to reuse the values from
5
5
# the params rather than the parsed value. This allows invalid date/time
6
6
# values to be redisplayed instead of blanks to aid correction by the user.
You can’t perform that action at this time.
0 commit comments