Replace manual activerecord translations with helpers
This commit is contained in:

committed by
Sebastian Serth

parent
e551c8a699
commit
f8330b39fb
@ -76,9 +76,7 @@ class ExecutionEnvironment < ApplicationRecord
|
||||
|
||||
def valid_test_setup?
|
||||
if test_command? ^ testing_framework?
|
||||
errors.add(:test_command,
|
||||
I18n.t('activerecord.errors.messages.together',
|
||||
attribute: I18n.t('activerecord.attributes.execution_environment.testing_framework')))
|
||||
errors.add(:test_command, :together, attribute: ExecutionEnvironment.human_attribute_name('testing_framework'))
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user