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

Returns:

  • (Boolean)


12
13
14
# File 'app/helpers/spree/orders_helper.rb', line 12

def order_just_completed?(order)
  flash[:order_completed] && order.present?
end

#truncated_product_description(product) ⇒ Object



8
9
10
# File 'app/helpers/spree/orders_helper.rb', line 8

def truncated_product_description(product)
  truncate_html(raw(product.description))
end