diff --git a/app/models/communication/website/menu.rb b/app/models/communication/website/menu.rb index 25eee954061c43c4a7cbfb0f1206b53536054ec7..4a8ea972f9f2bec5c8fbe28ca83c0a8e91d40064 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 cebd923e57d6badfa782af773751af683d597c9c..347d3fcfcbb4cfc965568b00052a97137bf8c96f 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