Fehler bei der Verknüpfung von Rubrik und Neuigkeiten beseitigt

This commit is contained in:
Andreas Stephanides
2013-02-12 11:33:57 +01:00
parent 9ca62c7235
commit 8e826fff24
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -1,6 +1,6 @@
class Rubrik < ActiveRecord::Base
attr_accessible :desc, :name, :prio
has_many :neuigkeiten
has_many :neuigkeiten, :class_name => "Neuigkeit"
resourcify
def moderator
u=User.with_role(:newsmoderator).first