mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
fixed ArgumentError
This commit is contained in:
parent
c771902780
commit
62d1ba45a2
8 changed files with 10 additions and 12 deletions
|
@ -7,6 +7,6 @@ class DomainNameserverValidator < ActiveModel::EachValidator
|
|||
|
||||
return if values.size.between?(min, max)
|
||||
association = options[:association] || attribute
|
||||
record.errors.add(association, :out_of_range, { min: min, max: max })
|
||||
record.errors.add(association, :out_of_range, **{ min: min, max: max })
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,6 @@ class ObjectCountValidator < ActiveModel::EachValidator
|
|||
|
||||
return if values.size.between?(min, max)
|
||||
association = options[:association] || attribute
|
||||
record.errors.add(association, :out_of_range, { min: min, max: max })
|
||||
record.errors.add(association, :out_of_range, **{ min: min, max: max })
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue