forked from bofh/fetsite
FIX neuigkeit datum_nilsave
This commit is contained in:
@@ -31,7 +31,7 @@ accepts_nested_attributes_for :calentry
|
|||||||
self.datum.nil? ? Time.now + 42.years : self.datum
|
self.datum.nil? ? Time.now + 42.years : self.datum
|
||||||
end
|
end
|
||||||
def public
|
def public
|
||||||
self.rubrik.public && self.datum >=Time.now.to_date
|
self.rubrik.public && self.datum_nilsave >=Time.now.to_date
|
||||||
end
|
end
|
||||||
def publish
|
def publish
|
||||||
self.datum = Date.today
|
self.datum = Date.today
|
||||||
|
|||||||
Reference in New Issue
Block a user