diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 12:07:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-03 12:07:54 +0300 |
commit | 87ef501eacd66d7166183d20d84e33de022f7002 (patch) | |
tree | fa4e0f41e00a4b6aeb035530be4b5473f51b7a3d /app/models/resource_event.rb | |
parent | f321e51f46bcb628c3e96a44b5ebf3bb1c4033ab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/resource_event.rb')
-rw-r--r-- | app/models/resource_event.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/resource_event.rb b/app/models/resource_event.rb index 9b3a211ad43..2c0052b0be3 100644 --- a/app/models/resource_event.rb +++ b/app/models/resource_event.rb @@ -37,6 +37,9 @@ class ResourceEvent < ApplicationRecord return true if issuable_count == 1 end - errors.add(:base, "Exactly one of #{self.class.issuable_attrs.join(', ')} is required") + errors.add( + :base, _("Exactly one of %{attributes} is required") % + { attributes: self.class.issuable_attrs.join(', ') } + ) end end |