fix stream helper for mobile

This commit is contained in:
danielgrippi 2012-01-17 19:21:36 -08:00
parent 880efd3e72
commit a658552c3f

View file

@ -12,6 +12,8 @@ module StreamHelper
local_or_remote_person_path(@person, :max_time => time_for_scroll(@stream))
elsif controller.instance_of?(PostsController)
public_stream_path(:max_time => time_for_scroll(@stream))
elsif controller.instance_of?(StreamsController)
multi_stream_path(:max_time => time_for_scroll(@stream))
else
raise 'in order to use pagination for this new controller, update next_page_path in stream helper'
end