diff options
author | Joe Sak <joe@joesak.com> | 2011-02-16 01:16:24 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-02-16 01:16:24 -0600 |
commit | 5bf1926ec7d09e9032e51a2f776f81101cb0e286 (patch) | |
tree | 6fa58dd769550ddcae0e154fb00669831c8fec90 /app | |
parent | 4fe4a7ff245b3d9a831e143725aaa9b2130b1f0a (diff) | |
download | refinerycms-blog-5bf1926ec7d09e9032e51a2f776f81101cb0e286.tar.gz refinerycms-blog-5bf1926ec7d09e9032e51a2f776f81101cb0e286.tar.bz2 refinerycms-blog-5bf1926ec7d09e9032e51a2f776f81101cb0e286.zip |
This is probably just faster
Diffstat (limited to 'app')
-rw-r--r-- | app/models/blog_post.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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? |