projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A few major changes:
[selectricity-live]
/
app
/
models
/
candidate.rb
diff --git
a/app/models/candidate.rb
b/app/models/candidate.rb
index 7af978afb3f95e422d035b780f4e4519f7fb8021..7b6e8024a52bb30bfa1dbb57f80167426cf51502 100644
(file)
--- a/
app/models/candidate.rb
+++ b/
app/models/candidate.rb
@@
-1,6
+1,7
@@
class Candidate < ActiveRecord::Base
belongs_to :election
validates_uniqueness_of :name
+ validates_presence_of :name
def <=>(other)
self.name <=> other.name
Benjamin Mako Hill
||
Want to submit a patch?