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

use slug by default

parent 16e3a218
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ module WithGithubFiles
end
def github_path_generated
"_#{self.class.name.demodulize.pluralize.underscore}/#{self.id}.html"
"_#{self.class.name.demodulize.pluralize.underscore}/#{self.slug}.html"
end
def to_jekyll(github_file)
......
......@@ -36,9 +36,4 @@ class Research::Researcher < ApplicationRecord
def to_s
"#{ first_name } #{ last_name }"
end
def github_path_generated
# Override from WithGithubFiles
"_authors/#{self.id}.md"
end
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