From 5bf1926ec7d09e9032e51a2f776f81101cb0e286 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Wed, 16 Feb 2011 01:16:24 -0600 Subject: This is probably just faster --- app/models/blog_post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models') diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb index c9929ce..c1918b6 100644 --- a/app/models/blog_post.rb +++ b/app/models/blog_post.rb @@ -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? -- cgit v1.2.3