This is probably just faster
This commit is contained in:
parent
4fe4a7ff24
commit
5bf1926ec7
1 changed files with 2 additions and 2 deletions
|
@ -30,11 +30,11 @@ class BlogPost < ActiveRecord::Base
|
||||||
# next is now in << self
|
# next is now in << self
|
||||||
|
|
||||||
def next
|
def next
|
||||||
self.class.next(self).first
|
BlogPost.next(self).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def prev
|
def prev
|
||||||
self.class.previous(self).first
|
BlogPost.previous(self).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def live?
|
def live?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue