projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed properties to remove unecessary exectables.
[selectricity-live]
/
app
/
models
/
quick_vote.rb
diff --git
a/app/models/quick_vote.rb
b/app/models/quick_vote.rb
index 3538a3cc5d9047f2a4a7fccc8cc925bca6c2e2f2..8d4e6e82141f8b8c67dab67d0103c170a97f0324 100644
(file)
--- a/
app/models/quick_vote.rb
+++ b/
app/models/quick_vote.rb
@@
-16,10
+16,9
@@
class QuickVote < Election
def initialize(params={})
super
def initialize(params={})
super
- self.enddate = Time.now + 30
+ self.enddate = Time.now + 30
.days
self.active = 1
self.anonymous = 1
self.active = 1
self.anonymous = 1
- self.quickvote = 1
end
def candidatelist=(candlist)
end
def candidatelist=(candlist)
@@
-37,7
+36,6
@@
class QuickVote < Election
def create_candidates
@raw_candidates.each do |name|
candidate = Candidate.new({:name => name})
def create_candidates
@raw_candidates.each do |name|
candidate = Candidate.new({:name => name})
- candidate.save
self.candidates << candidate
end
end
self.candidates << candidate
end
end
Benjamin Mako Hill
||
Want to submit a patch?