themengruppeprivate

This commit is contained in:
2014-05-27 19:42:05 +05:30
parent 13514317c9
commit adfec2446e
9 changed files with 19 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ class Calentry < ActiveRecord::Base
resourcify
def get_public
self.public = (self.try(:object).nil?)? (self.calendar.try(:public)) : object.try(:public)
self.public = (self.try(:object).nil?)? (self.calendar.try(:public?)) : object.try(:public?)
true
end
def start_time

View File

@@ -10,7 +10,7 @@
class Themengruppe < ActiveRecord::Base
WORD_COUNT = 50
attr_accessible :text, :title, :picture, :priority
attr_accessible :text, :title, :picture, :priority, :public
has_many :themen, class_name: 'Thema'
has_many :fragen, through: :themen