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:
Adam Meehan 2009-03-05 18:32:25 +11:00
parent e7e9a8b238
commit 9dd3282a81

View File

@ -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)