Move original_url from translation to problem

This commit is contained in:
pfischbeck committed 2014-12-29 20:33:30 +01:00
1 parent 4c16813c92
commit 2b812f297d
6 files changed
+11 -12

No files matched your search

+4
View File
@@ -10,4 +10,8 @@ class Problem < ActiveRecord::Base
!!self.translation
end
def original_url
"https://projecteuler.net/problem=#{self.id}"
end
end
-4
View File
@@ -5,8 +5,4 @@ class Translation < ActiveRecord::Base
validates :title, uniqueness: true
self.per_page = 50
def original_url
"https://projecteuler.net/problem=#{id}"
end
end