Skip to content

Commit

Permalink
Clean categories
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlevy committed Dec 28, 2023
1 parent 038d6dd commit 47372a7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/communication/website/permalink.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#
class Communication::Website::Permalink < ApplicationRecord
MAPPING = {
"Communication::Website::Post::Category" => Communication::Website::Permalink::Category,
"Communication::Website::Page" => Communication::Website::Permalink::Page,
"Communication::Website::Post" => Communication::Website::Permalink::Post,
"Communication::Website::Post::Category" => Communication::Website::Permalink::Category,
"Communication::Website::Agenda::Event" => Communication::Website::Permalink::Agenda::Event,
"Communication::Website::Agenda::Category" => Communication::Website::Permalink::Agenda::Category,
"Education::Diploma" => Communication::Website::Permalink::Diploma,
Expand Down
2 changes: 1 addition & 1 deletion app/models/communication/website/permalink/category.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.required_in_config?(website)
end

def self.static_config_key
:categories
:posts_categories
end

# /actualites/:slug/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
taxonomies:
administrator: administrators
author: authors
category: categories
posts_category: posts_categories
events_category: events_categories
diploma: diplomas
Expand Down

0 comments on commit 47372a7

Please sign in to comment.