summaryrefslogtreecommitdiff
path: root/engines/billing
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-28 09:26:17 +0200
committerAzul <azul@leap.se>2014-05-28 09:26:17 +0200
commitdf1c2438fcfe39edfb46546be8fcee5021f95fc3 (patch)
tree77be434e4cfbf4329f4c739cea58da97a9ee435e /engines/billing
parent8ca32588c969ee9eca986da8cf1de92b39ce3576 (diff)
destroy_btn helper method
Diffstat (limited to 'engines/billing')
-rw-r--r--engines/billing/app/views/subscriptions/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/billing/app/views/subscriptions/show.html.haml b/engines/billing/app/views/subscriptions/show.html.haml
index af1a5a5..246ebf0 100644
--- a/engines/billing/app/views/subscriptions/show.html.haml
+++ b/engines/billing/app/views/subscriptions/show.html.haml
@@ -4,4 +4,4 @@
Subscription
= render :partial => "subscription_details", :locals => {:subscription => @subscription}
- if allow_cancel_subscription(@subscription)
- = btn :cancel_subscription, user_subscription_path(@user, @subscription.id), :confirm => t(:are_you_sure), :method => :delete, :type => 'danger'
+ = destroy_btn :cancel_subscription, user_subscription_path(@user, @subscription.id), type: 'danger'