diff --git a/app/models/problem.rb b/app/models/problem.rb index ee70fe3..1405074 100644 --- a/app/models/problem.rb +++ b/app/models/problem.rb @@ -1,4 +1,8 @@ class Problem < ActiveRecord::Base has_one :translation + delegate :title, :content, to: :translation + has_many :translations, inverse_of: :problem + + self.per_page = 50 end