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:
parent
499eb6a9bb
commit
e804f30823
1 changed files with 1 additions and 2 deletions
|
|
@ -14,8 +14,7 @@ module StreamHelper
|
||||||
if current_page?(:stream)
|
if current_page?(:stream)
|
||||||
stream_path(:max_time => time_for_scroll(@stream))
|
stream_path(:max_time => time_for_scroll(@stream))
|
||||||
elsif current_page?(:aspects_stream)
|
elsif current_page?(:aspects_stream)
|
||||||
aspect_ids = (session[:a_ids] || [])
|
aspects_stream_path(:max_time => time_for_scroll(@stream), :a_ids => session[:a_ids])
|
||||||
aspects_stream_path(:max_time => time_for_scroll(@stream), a_ids: aspect_ids)
|
|
||||||
else
|
else
|
||||||
activity_stream_path(:max_time => time_for_scroll(@stream))
|
activity_stream_path(:max_time => time_for_scroll(@stream))
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue