diff options
author | rpereira2 <rpereira@gitlab.com> | 2019-07-19 14:05:04 +0530 |
---|---|---|
committer | rpereira2 <rpereira@gitlab.com> | 2019-07-24 13:24:11 +0530 |
commit | d66ff3c424570116c6861c1881dcde3bced4bca6 (patch) | |
tree | 6f61ea00f13756882dfd472484ed238c2b734b29 | |
parent | 29f92a550f7a213db87f66c465ec99afdd78603a (diff) | |
download | gitlab-ce-d66ff3c424570116c6861c1881dcde3bced4bca6.tar.gz |
Use N_ instead of _ in application_setting.rb
Using _ in validates seems to cause an autoload error:
https://gitlab.com/gitlab-org/gitlab-development-kit/issues/558
-rw-r--r-- | app/models/application_setting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index 249ce0a15b1..e8e3f650beb 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -42,7 +42,7 @@ class ApplicationSetting < ApplicationRecord validates :uuid, presence: true validates :outbound_local_requests_whitelist, - length: { maximum: 1_000, message: _('is too long (maximum is 1000 entries)') } + length: { maximum: 1_000, message: N_('is too long (maximum is 1000 entries)') } validates_each :outbound_local_requests_whitelist do |record, attr, value| next unless value&.any? { |entry| entry.size > 255 } |