mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
use namespaced validator class name for the :timeliness option
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user