aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorAndrew Hooker <GeekOnCoffee@gmail.com>2012-05-19 21:45:34 -0500
committerAndrew Hooker <GeekOnCoffee@gmail.com>2012-05-19 21:45:34 -0500
commit4e8e71409950deb0823b4f384f9d1f323be07d8e (patch)
tree24ac77910b4f17d67fc86b0f8402fd7771399973 /app
parent67a177fbb1ce8679068dbd1df8d945cb25cd50a5 (diff)
downloadrefinerycms-blog-4e8e71409950deb0823b4f384f9d1f323be07d8e.tar.gz
refinerycms-blog-4e8e71409950deb0823b4f384f9d1f323be07d8e.tar.bz2
refinerycms-blog-4e8e71409950deb0823b4f384f9d1f323be07d8e.zip
Removing redundant live method
Diffstat (limited to 'app')
-rw-r--r--app/models/refinery/blog/post.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb
index ebe89b5..6a2d7c2 100644
--- a/app/models/refinery/blog/post.rb
+++ b/app/models/refinery/blog/post.rb
@@ -48,10 +48,6 @@ module Refinery
!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