Fix 'maintenence' to 'maintenance' + layout reorganization
[cs356-p2-videostore.git] / app / models / bonus_purchase.rb
index a0d8a5c..044b2e2 100644 (file)
@@ -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