Skip to content
Snippets Groups Projects
Commit b29f2212 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Merge branch 'feature/previous_links' of github.com:noesya/osuny into feature/previous_links

parents eead4bda 9abe6255
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ class Communication::Website::Permalink < ApplicationRecord ...@@ -51,7 +51,7 @@ class Communication::Website::Permalink < ApplicationRecord
scope :not_current, -> { where(is_current: false) } scope :not_current, -> { where(is_current: false) }
def self.config_in_website(website) def self.config_in_website(website)
required_kinds_in_website.map { |permalink_class| required_kinds_in_website(website).map { |permalink_class|
[permalink_class.static_config_key, permalink_class.pattern_in_website(website)] [permalink_class.static_config_key, permalink_class.pattern_in_website(website)]
}.to_h }.to_h
end end
......
...@@ -13,6 +13,10 @@ class Communication::Website::Permalink::Category < Communication::Website::Perm ...@@ -13,6 +13,10 @@ class Communication::Website::Permalink::Category < Communication::Website::Perm
protected protected
def published?
true
end
def substitutions def substitutions
{ {
slug: about.path slug: about.path
......
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