Skip to content

Commit dbaec3b

Browse files
committed
Remove privacy enum from Post class. Handled in Privacy concern
1 parent 2c3f761 commit dbaec3b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/models/better_together/post.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
module BetterTogether
44
# Represents a blog post
55
class Post < ApplicationRecord
6-
PRIVACY_LEVELS = {
7-
private: 'private',
8-
public: 'public'
9-
}.freeze
10-
116
include Authorable
127
include FriendlySlug
138
include Categorizable
@@ -22,9 +17,6 @@ class Post < ApplicationRecord
2217

2318
slugged :title
2419

25-
enum post_privacy: PRIVACY_LEVELS,
26-
_prefix: :post_privacy
27-
2820
validates :title,
2921
presence: true
3022

0 commit comments

Comments
 (0)