marginally smarter PostSets::Post#best_post algorithm

This commit is contained in:
r888888888
2018-10-20 20:08:42 -07:00
parent 4ec92d3aa0
commit 77cc4ad625

View File

@@ -187,7 +187,7 @@ module PostSets
def best_post
# be smarter about this in the future
posts[0]
posts.max {|a, b| a.fav_count <=> b.fav_count}
end
end
end