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
This commit is contained in:
Erwan Guyader 2014-06-17 21:19:17 +02:00
parent 499eb6a9bb
commit e804f30823

View file

@ -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