Files
old-ribica/back-office/app/models/delivery_destination.rb

15 lines
269 B
Ruby
Raw Normal View History

2016-01-08 09:36:28 +01:00
class DeliveryDestination < ActiveRecord::Base
def get_payment_string
case self.payment_method
when 'cash_on_delivery'
2016-01-11 10:52:18 +01:00
'Prilikom preuzimanja'
2016-01-08 09:36:28 +01:00
when 'paypal'
'Paypal'
when 'pikpay'
'Pikpay'
else
'Nepoznato'
end
end
2015-02-20 07:33:26 +01:00
end