From ecbeaed0bc645e30283aaecc560f3fc30ea8a5f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 4 Aug 2017 17:28:25 +0200 Subject: [PATCH] fix weird indentation --- lib/topic_view.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/topic_view.rb b/lib/topic_view.rb index 3acc275bbae..3095127049c 100644 --- a/lib/topic_view.rb +++ b/lib/topic_view.rb @@ -341,13 +341,12 @@ class TopicView end end - # Returns an array of [id, post_number, days_ago] tuples. `days_ago` is there for the timeline - # calculations. + # Returns an array of [id, post_number, days_ago] tuples. + # `days_ago` is there for the timeline calculations. def filtered_post_stream - @filtered_post_stream ||= @filtered_posts.order(:sort_order) - .pluck(:id, - :post_number, - 'EXTRACT(DAYS FROM CURRENT_TIMESTAMP - created_at)::INT AS days_ago') + @filtered_post_stream ||= @filtered_posts + .order(:sort_order) + .pluck(:id, :post_number, 'EXTRACT(DAYS FROM CURRENT_TIMESTAMP - created_at)::INT AS days_ago') end def filtered_post_ids