From 5c4bc925e654254a505486efc1ca1c0db39f1a85 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Mon, 30 Sep 2013 21:17:35 +0200 Subject: [PATCH] thema linked tu gremium --- app/models/thema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/thema.rb b/app/models/thema.rb index 5d5797b..22128cd 100644 --- a/app/models/thema.rb +++ b/app/models/thema.rb @@ -15,7 +15,7 @@ class Thema < ActiveRecord::Base has_many :fragen has_many :attachments belongs_to :themengruppe, :foreign_key => "themengruppe_id" - + has_one :gremium validates :themengruppe, :presence => true validates :title, :presence => true