From e804f308235ca9c808bab4a279a0f9d71254bc13 Mon Sep 17 00:00:00 2001 From: Erwan Guyader Date: Tue, 17 Jun 2014 21:19:17 +0200 Subject: [PATCH] Code style + allow aspects to be nil - Only use old hash style - Don't replace the aspect ids list with an empty array if it's nil --- app/helpers/stream_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/stream_helper.rb b/app/helpers/stream_helper.rb index 4753e783c..f3eb25415 100644 --- a/app/helpers/stream_helper.rb +++ b/app/helpers/stream_helper.rb @@ -14,8 +14,7 @@ module StreamHelper if current_page?(:stream) stream_path(:max_time => time_for_scroll(@stream)) elsif current_page?(:aspects_stream) - aspect_ids = (session[:a_ids] || []) - aspects_stream_path(:max_time => time_for_scroll(@stream), a_ids: aspect_ids) + aspects_stream_path(:max_time => time_for_scroll(@stream), :a_ids => session[:a_ids]) else activity_stream_path(:max_time => time_for_scroll(@stream)) end