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

Merge branch 'feature/previous_links' of github.com:noesya/osuny into feature/previous_links

parents 828e65d7 515401c1
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ class Communication::Website::GitFile < ApplicationRecord
attr_accessor :will_be_destroyed
def self.sync(website, object, destroy: false)
# Permalinks must be calculated BEFORE renders
object.manage_permalink_in_website(website) if Communication::Website::Permalink::MAPPING.keys.include?(object.class.to_s)
object.before_git_sync # Handle optional before-sync process
git_file = where(website: website, about: object).first_or_create
......
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