forked from bofh/fetsite
10 lines
284 B
Ruby
10 lines
284 B
Ruby
class Themengruppe < ActiveRecord::Base
|
|
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
|