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