Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def refac(user_id,score)
- score_card = RestaurantService::Promotion::MumbaiIndiansScorecard.where(:user_id => user_id).first
- diff = (score*10) - score_card.match3
- score_card.match3 += diff
- score_card.total += diff
- score_card.save
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement