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: 5f3162ad52306cd17518aa01d30384f68645fb11
4
- data.tar.gz: 3748712c16db8d80b35bde24fea0fbf6504e890f
3
+ metadata.gz: 42e96ee4c487dfc7c3a09b34ef2fc91080b0000e
4
+ data.tar.gz: 5b0fdb82e518c1bff28e6af3d268c051fcc78b2f
5
5
  SHA512:
6
- metadata.gz: 8646c88938044957e87db4e1f8f73e3bafd71aa208fe80b5e2e8ac787e5e1f6768d07490c97e7e56933396a0d426594f25772a1c833fb26e5598c3f8b4316189
7
- data.tar.gz: 8d795803eea0083d0e521cd3cb4d584c48e3aaf06d4036fc42c53ee3274aa4aa684d3eba471fc4537a9dfdf7fbad842af869f7f8729875901d9a74d7ca484df8
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(@order)).gsub(':id', @order.id.to_s)
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.id.to_s)
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '1.2.2'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect