effective_orders 4.5.8 → 4.5.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59043240411738af58cfc47af461408a055e6c5b14cb972bfe2813e6406ff33f
|
4
|
+
data.tar.gz: 2984831a23addc106308001ebd736ddc549575b9af42062d2328633050e9a9c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65434ddd798e864809733e292b6dddd6bf57b20d0c336d44558e1dd80c5c2b9893d3c1e797c54cbbf6f8583188022c75c1c1e5baff7f7c2ee5e4fca150bb2d81
|
7
|
+
data.tar.gz: '0939ceffcb5d665ef932ce414c425c11b8e10f697abdce2bbd5c24335c1b438c3753a8c2a5223060f81872d8402f77f48a7178c492501b7a286f30893a71bb31'
|
@@ -145,7 +145,7 @@ module Admin
|
|
145
145
|
end
|
146
146
|
|
147
147
|
def send_payment_request
|
148
|
-
@order = Effective::Order.
|
148
|
+
@order = Effective::Order.not_purchased.find(params[:id])
|
149
149
|
authorize_effective_order!
|
150
150
|
|
151
151
|
if @order.send_payment_request_to_buyer!
|
@@ -164,7 +164,7 @@ module Admin
|
|
164
164
|
end
|
165
165
|
|
166
166
|
def bulk_send_payment_request
|
167
|
-
@orders = Effective::Order.
|
167
|
+
@orders = Effective::Order.not_purchased.where(id: params[:ids])
|
168
168
|
|
169
169
|
begin
|
170
170
|
authorize_effective_order!
|
@@ -6,7 +6,7 @@ module Effective
|
|
6
6
|
|
7
7
|
def show
|
8
8
|
@cart = current_cart
|
9
|
-
@pending_orders = Effective::Order.
|
9
|
+
@pending_orders = Effective::Order.not_purchased.where(user: current_user) if current_user.present?
|
10
10
|
|
11
11
|
@page_title ||= 'My Cart'
|
12
12
|
EffectiveOrders.authorize!(self, :show, @cart)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|