Skip to content
Snippets Groups Projects
Unverified Commit 6384dcce authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

force heading slug change (#2122)

parent 4830c674
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,11 @@ class Communication::Block::Heading < ApplicationRecord
protected
def set_slug
self.slug = nil
super
end
def slug_unavailable?(slug)
self.class.unscoped
.where(slug: slug, about_type: about_type, about_id: about_id)
......
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