Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

oops

  • Loading branch information...
commit 57ac618e707744ea062368f79603e5708215177b 1 parent 29a07ec
@charliesome authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  models/post.rb
View
2  models/post.rb
@@ -32,7 +32,7 @@ def self.clear_cache!
end
def self.recent(n = 5)
- all.to_a.reverse.last(n).map { |k,v| v }
+ all.to_a.last(n).map { |k,v| v }.reverse
end
def self.latest
Please sign in to comment.
Something went wrong with that request. Please try again.