Skip to content

Commit 8a617a2

Browse files
committed
fix: set_published_permalink needs to work for a newly created article as well
1 parent c61c20c commit 8a617a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/article.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Article
2121
belongs_to :user
2222

2323
# Core filters
24-
before :update, :set_published_permalink
24+
before :save, :set_published_permalink
2525
after :create, :set_create_activity
2626
after :update, :set_update_activity
2727

0 commit comments

Comments
 (0)