X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=app%2Fmodels%2Fbonus_purchase.rb;h=044b2e2d5b63c65ed74ff4f41134a4e278568ce2;hb=64aa5e3cbee5e3c07e0d97ee60d03a4a2dfcf787;hp=a0d8a5cddcecbfc952f89078fc8c6a749247046a;hpb=4bf27b6f7eb4a279d70e08c4c6ac38ad6ad829cf;p=cs356-p2-videostore.git diff --git a/app/models/bonus_purchase.rb b/app/models/bonus_purchase.rb index a0d8a5c..044b2e2 100644 --- a/app/models/bonus_purchase.rb +++ b/app/models/bonus_purchase.rb @@ -7,9 +7,7 @@ class BonusPurchase < Purchase def self.last_bonus_date(customer,bonus_type,since_date) bonuses = BonusPurchase.find_all_by_customer_id(customer, :conditions => ["date >= ?", since_date], :order => 'date DESC') - puts "*** BONUSES.length: #{bonuses.length} ***" for bonus in bonuses - puts "#{bonus.rentable.class.to_s} == #{bonus_type.to_s} => #{bonus.rentable.class.to_s == bonus_type.to_s}" if bonus.rentable.class.to_s == bonus_type.to_s return bonus.date end