@@ -14,12 +14,12 @@ module CommunicartMailerHelper
     end
   end
 
-  def approve_all_url(approval)
+  def approve_all_url(approval, action = 'approve')
     approval_response_url(
       cart_id: approval.cart_id,
       user_id: approval.user_id,
       cch: approval.api_token.access_token,
-      approver_action: 'approve'
+      approver_action: action
     )
   end
 end
module CommunicartMailerHelper
  def status_icon_tag(status)
    image_tag("icon-#{status}.png", class: "status-icon #{status}")
  end

  def generate_bookend_class(index, count)
    case index
    when count - 1
      'class=last'
    when 0
      'class=first'
    else
      ''
    end
  end

  def approve_all_url(approval)
    approval_response_url(
      cart_id: approval.cart_id,
      user_id: approval.user_id,
      cch: approval.api_token.access_token,
      approver_action: 'approve'
    )
  end
end

Last thing! Can we update the method name, since it's not always for approvals?