Class: ConsoleSale::FeeStrategy

Inherits:
FeeStrategy show all
Defined in:
app/models/console_sale.rb

Instance Method Summary collapse

Methods inherited from FeeStrategy

#handle_memberships, #handle_passes, #handle_tickets, #ticket_fee, #waive_fee_for?

Instance Method Details

#apply_to_cart(cart) ⇒ Object



25
26
27
28
# File 'app/models/console_sale.rb', line 25

def apply_to_cart(cart)
  return if cart.is_a? BoxOffice::Cart
  cart.items.each {|i| i.update_column(:service_fee, 0)}
end