Show More
Commit Description:
shows submission timeouts
Commit Description:
shows submission timeouts
References:
File last commit:
Show/Diff file:
Action:
app/models/test_pair_assignment.rb
| 9 lines
| 216 B
| text/x-ruby
| RubyLexer
|
|
r381 | class TestPairAssignment < ActiveRecord::Base | ||
belongs_to :problem | ||||
belongs_to :test_pair | ||||
belongs_to :user | ||||
def expired? | ||||
return created_at + TEST_ASSIGNMENT_EXPIRATION_DURATION < Time.new.gmtime | ||||
end | ||||
end | ||||