small fixes

This commit is contained in:
Andreas Stephanides
2013-02-28 09:57:54 +01:00
parent 748497ce98
commit 0de57e08a9
4 changed files with 13 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
class Neuigkeit < ActiveRecord::Base
attr_accessible :datum, :text, :title
belongs_to :author, :class_name =>'User'
belongs_to :rubrik, :class_name =>'Rubrik'
belongs_to :rubrik, :class_name =>'Rubrik', :foreign_key => "rubrik_id"
end