verwaltung, formulare...

This commit is contained in:
Andreas Stephanides
2013-09-01 11:40:45 +02:00
parent f37d8d442d
commit 9b16843d83
7 changed files with 81 additions and 74 deletions

View File

@@ -33,7 +33,7 @@ class Neuigkeit < ActiveRecord::Base
self.rubrik.public && self.datum >=Time.now.to_date
end
def publish
self.datum = Time.now
self.datum = Date.today
end
def reverse_publish
self.datum = nil