Files
fetsite/app/models/themengruppe.rb
2013-08-19 19:28:53 +02:00

11 lines
302 B
Ruby

class Themengruppe < ActiveRecord::Base
WORD_COUNT = 50
attr_accessible :text, :title
has_many :themen, class_name: 'Thema'
has_many :fragen, through: :themen
validates :title, :presence => true
translates :title,:text, :versioning =>true, :fallbacks_for_empty_translations => true
end