Intern Bereich

This commit is contained in:
Andreas Stephanides
2014-05-02 18:54:50 +02:00
parent ef62b73b2d
commit c713a44884
8 changed files with 42 additions and 13 deletions

View File

@@ -13,6 +13,7 @@
class Rubrik < ActiveRecord::Base
attr_accessible :desc, :name, :prio, :calendar, :public
has_many :neuigkeiten, :class_name => "Neuigkeit"
has_many :published, :class_name => "Neuigkeit", :conditions=>["Neuigkeit.published"]
has_many :calentries, :through => :neuigkeiten, :as=>:object
resourcify
has_one :calendar