Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splitsdb. a not-super-great speedrun splits sharer that was rebooted into splits.io
Something went wrong. Try again.
123456789101112131415class Run < ActiveRecord::Base belongs_to :category belongs_to :user has_many :splits has_one :game, :through => :category validates_presence_of :user, :time
def time(format = "%-k:%M:%S") Time.at(self.time_seconds).utc.strftime(format) end def time_seconds() self.splits.max_by(&:best_run_seconds).best_run_seconds endend