diff --git a/app/models/communication/website/with_connected_objects.rb b/app/models/communication/website/with_connected_objects.rb index 4beef303de6d7df1eb78847bdfe0b81b0c1e61b9..b780608ed1e87f74f12caa966b88909a86d4abd4 100644 --- a/app/models/communication/website/with_connected_objects.rb +++ b/app/models/communication/website/with_connected_objects.rb @@ -19,6 +19,7 @@ module Communication::Website::WithConnectedObjects initialize_menus sync_with_git_without_delay destroy_obsolete_git_files_without_delay + get_current_theme_version! end handle_asynchronously :clean_and_rebuild, queue: :low_priority diff --git a/app/models/communication/website/with_theme.rb b/app/models/communication/website/with_theme.rb index b2d1e9f7aded33ab0292ebd20a949c6ef387e1b8..32416661a020747baa057cf300bee4bd13045382 100644 --- a/app/models/communication/website/with_theme.rb +++ b/app/models/communication/website/with_theme.rb @@ -12,7 +12,6 @@ module Communication::Website::WithTheme end end - def get_current_theme_version! self.update_column :theme_version, current_theme_version end