This is probably just faster

This commit is contained in:
Joe Sak 2011-02-16 01:16:24 -06:00
parent 4fe4a7ff24
commit 5bf1926ec7

View file

@ -30,11 +30,11 @@ class BlogPost < ActiveRecord::Base
# next is now in << self
def next
self.class.next(self).first
BlogPost.next(self).first
end
def prev
self.class.previous(self).first
BlogPost.previous(self).first
end
def live?