use namespaced validator class name for the :timeliness option

This commit is contained in:
Adam Meehan
2011-01-22 10:48:40 +11:00
parent 7b5b11ad63
commit 54ba4a038c
2 changed files with 3 additions and 3 deletions

View File

@@ -86,4 +86,4 @@ module ValidatesTimeliness
end
# Compatibility with ActiveModel validates method which matches option keys to their validator class
TimelinessValidator = ValidatesTimeliness::Validator
ActiveModel::Validations::TimelinessValidator = ValidatesTimeliness::Validator