diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index c498286f6d5e7aea0c3f83c10b90468a6109328a..80cf1451ba69f5d38d9812365c0c5ac51cf0598c 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -96,7 +96,7 @@ class Communication::Website::Post < ApplicationRecord } def published? - published && published_at.to_date <= Date.today + published && published_at&.to_date <= Date.today end # Is it used?