Add check whether problem has a translation

This commit is contained in:
pfischbeck committed 2014-12-29 20:28:33 +01:00
1 parent cbf17cfce0
commit 4c16813c92
8 files changed
+41 -5

No files matched your search

+5
View File
@@ -5,4 +5,9 @@ class Problem < ActiveRecord::Base
has_many :translations, inverse_of: :problem
self.per_page = 50
def is_translated?
!!self.translation
end
end