Module: Cartify::CheckoutHelper
- Defined in:
- app/helpers/cartify/checkout_helper.rb
Instance Method Summary collapse
- #active_step?(current_step) ⇒ Boolean
- #order_summary_table_position ⇒ Object
- #order_summary_text_position ⇒ Object
Instance Method Details
#active_step?(current_step) ⇒ Boolean
3 4 5 |
# File 'app/helpers/cartify/checkout_helper.rb', line 3 def active_step?(current_step) 'active' if current_step == step end |
#order_summary_table_position ⇒ Object
12 13 14 |
# File 'app/helpers/cartify/checkout_helper.rb', line 12 def order_summary_table_position 'general-summary-table-right general-text-right' if right? end |
#order_summary_text_position ⇒ Object
7 8 9 10 |
# File 'app/helpers/cartify/checkout_helper.rb', line 7 def order_summary_text_position return 'text-center general-text-right' if right? 'general-text-align' end |