Files
old-ribica/back-office/app/models/delivery_destination.rb
adam.harbas@a-net.ba 05c8f6ce88 Adding payment method
2016-01-08 09:36:28 +01:00

15 lines
257 B
Ruby

class DeliveryDestination < ActiveRecord::Base
def get_payment_string
case self.payment_method
when 'cash_on_delivery'
'Pouzecem'
when 'paypal'
'Paypal'
when 'pikpay'
'Pikpay'
else
'Nepoznato'
end
end
end