Skip to content

Commit

Permalink
post draft scope
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Aug 11, 2023
1 parent cfde18c commit 913f6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Post < ApplicationRecord
where(private: false)
}

scope :draft, -> { where.not(:state => "draft" )}
scope :draft, -> { where(:state => "draft" )}


def cover_url(size = nil)
Expand Down

0 comments on commit 913f6c1

Please sign in to comment.