public neuigkeit/rubrik -calentry link

This commit is contained in:
Andreas Stephanides
2013-08-23 13:42:19 +02:00
parent de4c84871c
commit 41433c20f9
4 changed files with 26 additions and 4 deletions

View File

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