Module: Spree::OrdersHelper

Includes:
TruncateHtmlHelper
Defined in:
app/helpers/spree/orders_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) order_just_completed?(order)

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

- (Object) truncated_product_description(product)



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

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