Show More
Commit Description:
added codejom controller, show status in public
Commit Description:
added codejom controller, show status in public
References:
File last commit:
Show/Diff file:
Action:
app/models/test_pair_assignment.rb
| 11 lines
| 218 B
| text/x-ruby
| RubyLexer
|
|
r213 | class TestPairAssignment < ActiveRecord::Base | ||
|
r222 | |||
|
r213 | belongs_to :user | ||
belongs_to :test_pair | ||||
belongs_to :problem | ||||
|
r222 | |||
def expired? | ||||
return created_at + TEST_ASSIGNMENT_EXPIRATION_DURATION < Time.new.gmtime | ||||
end | ||||
|
r213 | end | ||