diff options
author | Starfall <us@starfall.systems> | 2022-06-24 13:31:43 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-06-24 13:31:43 -0500 |
commit | d83f17f6763a1ffb3569eac73330cb09c557acea (patch) | |
tree | 92d392eed60a7d60bbd01e8544202db19a37e3d5 /app/validators | |
parent | b9c901007b9a5772d2553a5770fa479954eec58f (diff) | |
parent | 63f79874b59b3ba28c0f940b9d36ea7aacb44c93 (diff) |
Merge remote-tracking branch 'glitch/main'
Diffstat (limited to 'app/validators')
-rw-r--r-- | app/validators/url_validator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/validators/url_validator.rb b/app/validators/url_validator.rb index f50abbe24..75d1edb87 100644 --- a/app/validators/url_validator.rb +++ b/app/validators/url_validator.rb @@ -2,7 +2,7 @@ class URLValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) - record.errors.add(attribute, I18n.t('applications.invalid_url')) unless compliant?(value) + record.errors.add(attribute, :invalid) unless compliant?(value) end private |