Show More
Commit Description:
moved submission validation to model...
Commit Description:
moved submission validation to model git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@56 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/models/grader_process.rb | 17 lines | 425 B | text/x-ruby | RubyLexer |
class GraderProcess < ActiveRecord::Base
def self.find_by_ip_and_pid(ip,pid)
return GraderProcess.find(:first,
:conditions => {
:ip => ip,
:pid => pid
})
end
def self.report_active(ip,pid,mode)
end
def self.report_inactive(ip,pid,mode)
end
end