effective_orders 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42e96ee4c487dfc7c3a09b34ef2fc91080b0000e
|
4
|
+
data.tar.gz: 5b0fdb82e518c1bff28e6af3d268c051fcc78b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cedacdf5e24e128aa51a07ca935df574fd05cd52188d52db05457509c72e892abde6ea43bc7d36c9e3e56e5cc2dcc1243b13d7d51e918c069438b306866cab7
|
7
|
+
data.tar.gz: 32fecb0d4a18999bd555d8ec5c51f7c47f1647ad8d1e4302ecbc994de88e2d5e0887ec70aaceab89639f79ccdc31542fab28be8efe17918488428046cb6afc5d
|
@@ -143,11 +143,11 @@ module Effective
|
|
143
143
|
|
144
144
|
flash[:success] = "Successfully purchased order"
|
145
145
|
|
146
|
-
redirect_to (redirect_url.presence || effective_orders.order_purchased_path(
|
146
|
+
redirect_to (redirect_url.presence || effective_orders.order_purchased_path(':id')).gsub(':id', @order.to_param.to_s)
|
147
147
|
rescue => e
|
148
148
|
binding.pry
|
149
149
|
flash[:danger] = "Unable to process your order. Your card has not been charged. Your Cart items have been restored. Please try again. Error Message: #{e.message}"
|
150
|
-
redirect_to (declined_redirect_url.presence || effective_orders.cart_path).gsub(':id', @order.
|
150
|
+
redirect_to (declined_redirect_url.presence || effective_orders.cart_path).gsub(':id', @order.to_param.to_s)
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|