mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
made parameters explicit for validates_timeliness since its private and should not be used directly for validation
This commit is contained in:
@@ -48,8 +48,7 @@ module ValidatesTimeliness
|
||||
|
||||
private
|
||||
|
||||
def validates_timeliness_of(*attr_names)
|
||||
configuration = attr_names.extract_options!
|
||||
def validates_timeliness_of(attr_names, configuration)
|
||||
validator = ValidatesTimeliness::Validator.new(configuration)
|
||||
|
||||
# bypass handling of allow_nil and allow_blank to validate raw value
|
||||
|
||||
Reference in New Issue
Block a user