mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
parent
834b13c922
commit
7530dd7b62
4 changed files with 24 additions and 23 deletions
|
@ -1,5 +1,5 @@
|
|||
class E164Validator < ActiveModel::EachValidator
|
||||
def validate_each(record, attribute, value)
|
||||
def validate_each(record, attribute, _value)
|
||||
validator = ActiveModel::Validations::LengthValidator.new(maximum: 17, attributes: attribute)
|
||||
validator.validate(record)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue