mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-27 02:28:50 +01:00
Add ability to accept or decline translations
This commit is contained in:
@@ -15,7 +15,7 @@ class Problem < ApplicationRecord
|
||||
if self.is_translated?
|
||||
self.translation.outdated!
|
||||
end
|
||||
self.translation = translation
|
||||
self.update(translation: translation)
|
||||
self.translation.in_use!
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user