Skip to content
Snippets Groups Projects
Commit 3fa9c094 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 04bb52dc fdc2ef6f
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,6 @@ class Communication::Website::Post < ApplicationRecord
end
def set_published_at
self.published_at = published? ? Time.zone.now : nil
self.published_at = Time.zone.now if published? && published_at.nil?
end
end
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