Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Missing method from fix #55
Browse files Browse the repository at this point in the history
  • Loading branch information
jumph4x committed Jun 3, 2013
1 parent ddfba2d commit 789c6be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/mailers/spree/order_mailer.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ def cancel_email(order, resend=false)
mail_params[:from] = @order.store.email if @order.store.email.present? mail_params[:from] = @order.store.email if @order.store.email.present?
mail(mail_params) mail(mail_params)
end end

private

def find_order(order)
@order = order.is_a?(Spree::Order) ? order : Spree::Order.find(order)
end
end end

0 comments on commit 789c6be

Please sign in to comment.