Skip to content
Snippets Groups Projects
Unverified Commit 74fdb456 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix commit menu

parent c53b506b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
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