Better error messages when topics can't load

This commit is contained in:
Robin Ward
2013-02-25 18:38:11 -05:00
parent d9d3419a51
commit 397c6ca761
5 changed files with 84 additions and 75 deletions

View File

@ -129,12 +129,12 @@ class TopicsController < ApplicationController
end
def timings
PostTiming.process_timings(
current_user,
params[:topic_id].to_i,
params[:highest_seen].to_i,
params[:topic_time].to_i,
current_user,
params[:topic_id].to_i,
params[:highest_seen].to_i,
params[:topic_time].to_i,
(params[:timings] || []).map{|post_number, t| [post_number.to_i, t.to_i]}
)