Module: ShoppingCart::OrdersHelper
- Defined in:
- app/helpers/shopping_cart/orders_helper.rb
Instance Method Summary collapse
Instance Method Details
#client_name(address) ⇒ Object
9 10 11 |
# File 'app/helpers/shopping_cart/orders_helper.rb', line 9 def client_name(address) address.first_name + ' ' + address.last_name if address end |
#filter_orders_title ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/shopping_cart/orders_helper.rb', line 3 def filter_orders_title return I18n.t("orders.#{request.GET[:filter]}") if request.GET[:filter] I18n.t('button.all') end |
#secret_card_number(number) ⇒ Object
13 14 15 |
# File 'app/helpers/shopping_cart/orders_helper.rb', line 13 def secret_card_number(number) '**** **** **** ' + number if number end |