Commit 10acec7a875e16c9c49fc445465dce40cc8065e9

Authored by Pius Uzamere
1 parent c1254691

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 31 @item = Item.create!(:creator => creator, :data => data)
32 32 self.item = @item
33 33 end
34   - end
35   -
36   - def before_save
37 34 unless self.score
38 35 self.score = 0.0
39 36 end
... ...