summaryrefslogtreecommitdiff
path: root/app/controllers/spree/admin/subscriptions_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/spree/admin/subscriptions_controller.rb')
-rw-r--r--app/controllers/spree/admin/subscriptions_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/spree/admin/subscriptions_controller.rb b/app/controllers/spree/admin/subscriptions_controller.rb
index 8462ba1..fae79aa 100644
--- a/app/controllers/spree/admin/subscriptions_controller.rb
+++ b/app/controllers/spree/admin/subscriptions_controller.rb
@@ -36,7 +36,7 @@ module Spree
notice = @subscription.errors.full_messages.to_sentence
end
- redirect_to spree.admin_subscriptions_path, notice: notice
+ redirect_back(fallback_location: spree.admin_subscriptions_path, notice: notice)
end
def activate
@@ -48,7 +48,7 @@ module Spree
notice = @subscription.errors.full_messages.to_sentence
end
- redirect_to spree.admin_subscriptions_path, notice: notice
+ redirect_back(fallback_location: spree.admin_subscriptions_path, notice: notice)
end
def skip
@@ -59,7 +59,7 @@ module Spree
date: @subscription.actionable_date
)
- redirect_to spree.admin_subscriptions_path, notice: notice
+ redirect_back(fallback_location: spree.admin_subscriptions_path, notice: notice)
end
private