Skip to content

Commit 804ebc8

Browse files
committed
Set post slugged after slugged attribute is defined
1 parent cd9d307 commit 804ebc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/better_together/post.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ class Post < ApplicationRecord
1616
include Publishable
1717
include Searchable
1818

19-
slugged :title
20-
2119
translates :title
2220
translates :content, type: :text
2321
# translates :content_html, type: :action_text
2422

23+
slugged :title
24+
2525
enum post_privacy: PRIVACY_LEVELS,
2626
_prefix: :post_privacy
2727

0 commit comments

Comments
 (0)