design und struktur (container - unnötige entfernt)

This commit is contained in:
Andreas Stephanides
2013-09-07 12:37:16 +02:00
parent 1c44ddc2ba
commit a60bdf5149
14 changed files with 137 additions and 202 deletions

View File

@@ -15,12 +15,13 @@ class Rubrik < ActiveRecord::Base
has_many :neuigkeiten, :class_name => "Neuigkeit"
has_many :calentries, :through => :neuigkeiten, :as=>:object
resourcify
def moderator
u=User.with_role(:newsmoderator).first
if !u.nil?
u.id
end
end
has_one :calendar
def moderator
u=User.with_role(:newsmoderator).first
if !u.nil?
u.id
end
end
end