Commit 10acec7a875e16c9c49fc445465dce40cc8065e9
1 parent
c1254691
Exists in
master
and in
1 other branch
it's sufficient to do the score check before_create
Showing
1 changed file
with
0 additions
and
3 deletions
Show diff stats
app/models/choice.rb
@@ -31,9 +31,6 @@ class Choice < ActiveRecord::Base | @@ -31,9 +31,6 @@ class Choice < ActiveRecord::Base | ||
31 | @item = Item.create!(:creator => creator, :data => data) | 31 | @item = Item.create!(:creator => creator, :data => data) |
32 | self.item = @item | 32 | self.item = @item |
33 | end | 33 | end |
34 | - end | ||
35 | - | ||
36 | - def before_save | ||
37 | unless self.score | 34 | unless self.score |
38 | self.score = 0.0 | 35 | self.score = 0.0 |
39 | end | 36 | end |