norman / friendly_id

FriendlyId is the “Swiss Army bulldozer” of slugging and permalink plugins for ActiveRecord. It allows you to create pretty URL’s and work with human-friendly strings as if they were numeric ids for ActiveRecord models.
http://norman.github.io/friendly_id/
MIT License
6.16k stars 592 forks source link

Fix unset_slug_if_invalid #1026

Open maxime-carbonneau opened 4 weeks ago

maxime-carbonneau commented 4 weeks ago

Fix if statement to run want the record is invalid.

Should fix https://github.com/norman/friendly_id/issues/959