mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-23 06:16:44 +00:00
add method to enable action view invalid value extension. will be on by default but will off in version 2
This commit is contained in:
parent
e7e9a8b238
commit
9dd3282a81
@ -1,4 +1,9 @@
|
|||||||
module ValidatesTimeliness
|
module ValidatesTimeliness
|
||||||
|
|
||||||
|
def self.enable_datetime_select_extension!
|
||||||
|
::ActionView::Helpers::InstanceTag.send(:include, ValidatesTimeliness::ActionView::InstanceTag)
|
||||||
|
end
|
||||||
|
|
||||||
module ActionView
|
module ActionView
|
||||||
|
|
||||||
# Intercepts the date and time select helpers to allow the
|
# Intercepts the date and time select helpers to allow the
|
||||||
@ -41,5 +46,3 @@ module ValidatesTimeliness
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ActionView::Helpers::InstanceTag.send(:include, ValidatesTimeliness::ActionView::InstanceTag)
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user