From 33792189ed2e266320d5bd53e5d2bce80229a676 Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Fri, 9 Feb 2024 18:48:31 +0100
Subject: [PATCH] fix scope

---
 app/models/communication/website/with_theme.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/app/models/communication/website/with_theme.rb b/app/models/communication/website/with_theme.rb
index b76d364f9..c37484827 100644
--- a/app/models/communication/website/with_theme.rb
+++ b/app/models/communication/website/with_theme.rb
@@ -8,11 +8,7 @@ module Communication::Website::WithTheme
     scope :for_theme_version, -> (version) { where(theme_version: version) }
     scope :for_older_theme_version, -> (version) { where.not(theme_version: version) }
     scope :for_updatable_theme, -> (status) { updatable_theme if status == 'true' }
-    scope :updatable_theme, -> {
-      with_repository.
-      with_url.
-      with_access_token
-    }
+    scope :updatable_theme, -> { with_repository.with_url.with_access_token }
 
     def self.autoupdate_websites
       Communication::Website.with_automatic_update.find_each do |website|
-- 
GitLab