Readability

This commit is contained in:
Rohan Mitchell
2014-06-04 14:27:17 +10:00
parent 1ccfc46e50
commit a99e18990d

View File

@@ -26,7 +26,7 @@ class CheckoutController < Spree::CheckoutController
if @order.next
state_callback(:after)
else
unless @order.errors.empty?
if @order.errors.present?
flash[:error] = @order.errors.full_messages.to_sentence
else
flash[:error] = t(:payment_processing_failed)