Skip to content

Commit

Permalink
Removing redundant live method
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekOnCoffee committed May 20, 2012
1 parent 67a177f commit 4e8e714
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/refinery/blog/post.rb
Expand Up @@ -48,10 +48,6 @@ def live?
!draft and published_at <= Time.now
end

def live
where(["published_at <= ? and draft = ?", Time.now, false])
end

def friendly_id_source
custom_url.present? ? custom_url : title
end
Expand Down

0 comments on commit 4e8e714

Please sign in to comment.