Permalink
Browse files

Missing method from fix #55

  • Loading branch information...
1 parent ddfba2d commit 789c6be6ad77c145c444c14b95ca2778350bbc15 @jumph4x jumph4x committed Jun 3, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 app/mailers/spree/order_mailer.rb
@@ -18,4 +18,10 @@ def cancel_email(order, resend=false)
mail_params[:from] = @order.store.email if @order.store.email.present?
mail(mail_params)
end
+
+ private
+
+ def find_order(order)
+ @order = order.is_a?(Spree::Order) ? order : Spree::Order.find(order)
+ end
end

0 comments on commit 789c6be

Please sign in to comment.