Show More
Commit Description:
add model solution
Commit Description:
add model solution
File last commit:
Show/Diff file:
Action:
app/models/user_contest_stat.rb | 10 lines | 137 B | text/x-ruby | RubyLexer |
Jittat Fakcharoenphol
added individual contest mode
r217 class UserContestStat < ActiveRecord::Base
belongs_to :user
Jittat Fakcharoenphol
a cleaner, testable way to log out user after contest changed
r295 def reset_timer_and_save
self.started_at = nil
save
end
Jittat Fakcharoenphol
added individual contest mode
r217 end