Skip to content
Snippets Groups Projects
Commit 45850d81 authored by pabois's avatar pabois
Browse files

file

parent 26ce97b1
No related branches found
No related tags found
No related merge requests found
......@@ -123,8 +123,7 @@ class Communication::Website::GithubFile < ApplicationRecord
end
def valid_for_publication?
case about_type
when 'Communication::Website::Page', 'Communication::Website::Post'
if about.respond_to?(:published)
about.published?
else
true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment