Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
12345678910111213class Runs::ApplicationController < ApplicationController private
def set_run @run = Run.includes(:user, :game, :category, :segments).find_by(id: params[:run].to_i(36)) || Run.find_by!(nick: params[:run]) timing = params[:timing] || @run.default_timing gon.run = {id: @run.id36, splits: @run.collapsed_segments(timing)} gon.scale_to = @run.duration_ms(timing) rescue ActionController::UnknownFormat, ActiveRecord::RecordNotFound not_found endend