Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Missing method from fix #55

  • Loading branch information...
commit 789c6be6ad77c145c444c14b95ca2778350bbc15 1 parent ddfba2d
@jumph4x jumph4x authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 app/mailers/spree/order_mailer.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.