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

Should sanitize permalink before checking if it needs to be changed #1

@darkhelmet

Description

@darkhelmet

In Article#set_permalink, it seems that you should do Article.sanitize_permalink(new_permalink) before the check, so you can use the sanitized version to do the comparison, instead of checking, then sanitizing.

Unless I'm missing something...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions