diff options
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 |