Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Change in the way to set permalinks #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/episode.rb
Expand Up @@ -169,6 +169,6 @@ def self.primitive_search_conditions(query, join)
end

def set_permalink
self.permalink = name.downcase.gsub(/[^0-9a-z]+/, ' ').strip.gsub(' ', '-') if name
self.permalink = name.parameterize if name
end
end