lint this, check todo
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ class Entry < ApplicationRecord
|
||||
end
|
||||
|
||||
def at_least_one_translation
|
||||
if [fi, en, sv, no, ru, de].all?(&:blank?)
|
||||
if [ fi, en, sv, no, ru, de ].all?(&:blank?)
|
||||
errors.add(:base, "At least one language translation is required")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user