lib/ecrire/app/models/post.rb in ecrire-0.28.3 vs lib/ecrire/app/models/post.rb in ecrire-0.29.0

- old
+ new

@@ -24,10 +24,10 @@ scope :published, lambda { status("published") } scope :drafted, lambda { status("drafted") } scope :status, lambda {|status| if status.eql?("published") where "posts.published_at IS NOT NULL" - else + elsif status.eql?('drafted') where "posts.published_at IS NULL" end } scope :search_by_title, lambda {|title|