mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 07:16:41 +00:00
use the value from validates_each in validator
This commit is contained in:
@@ -500,7 +500,7 @@ describe ValidatesTimeliness::Validator do
|
||||
|
||||
def validate_with(attr_name, value)
|
||||
person.send("#{attr_name}=", value)
|
||||
validator.call(person, attr_name)
|
||||
validator.call(person, attr_name, value)
|
||||
end
|
||||
|
||||
def should_have_error(attr_name, error)
|
||||
|
||||
Reference in New Issue
Block a user