From 74fdb45667b0a2bb970fdf84d901caa42dab4db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Fri, 24 Dec 2021 15:56:00 +0100 Subject: [PATCH] fix commit menu --- app/models/communication/website/menu.rb | 2 -- app/models/communication/website/menu/item.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/models/communication/website/menu.rb b/app/models/communication/website/menu.rb index 25eee9540..4a8ea972f 100644 --- a/app/models/communication/website/menu.rb +++ b/app/models/communication/website/menu.rb @@ -31,8 +31,6 @@ class Communication::Website::Menu < ApplicationRecord validates :title, :identifier, presence: true validates :identifier, uniqueness: { scope: :communication_website_id } - after_touch :publish_github_files - scope :ordered, -> { order(created_at: :asc) } def to_s diff --git a/app/models/communication/website/menu/item.rb b/app/models/communication/website/menu/item.rb index cebd923e5..347d3fcfc 100644 --- a/app/models/communication/website/menu/item.rb +++ b/app/models/communication/website/menu/item.rb @@ -81,7 +81,7 @@ class Communication::Website::Menu::Item < ApplicationRecord when 'staff' target = "/#{website.staff_github_directory}" when 'blank' - target = nil + target = '' else target = about&.path end -- GitLab