Module: Spree::OrdersHelper
- Includes:
- TruncateHtmlHelper
- Defined in:
- app/helpers/spree/orders_helper.rb
Instance Method Summary collapse
Instance Method Details
#order_just_completed?(order) ⇒ Boolean
14 15 16 |
# File 'app/helpers/spree/orders_helper.rb', line 14 def order_just_completed?(order) flash[:order_completed] && order.present? end |
#truncated_product_description(product) ⇒ Object
10 11 12 |
# File 'app/helpers/spree/orders_helper.rb', line 10 def truncated_product_description(product) truncate_html(raw(product.description)) end |