ignore restriction value errors

This commit is contained in:
Adam Meehan
2010-08-01 23:26:23 +10:00
parent 0720abeb0e
commit 6acf61aa88
3 changed files with 36 additions and 3 deletions

View File

@@ -18,6 +18,9 @@ module ValidatesTimeliness
mattr_accessor :dummy_date_for_time_type
@@dummy_date_for_time_type = [ 2000, 1, 1 ]
# Ignore errors when restriction options are evaluated
mattr_accessor :ignore_restriction_errors
@@ignore_restriction_errors = false
end
require 'validates_timeliness/conversion'