effective_qb_sync 1.3.3 → 1.3.4

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: df7032f4abbef9c241bd2eebf383aecfc6c6c918d006d60046799e90a200d294
4
- data.tar.gz: ccdfce8884cda0205388fc28f8d4d39da869d2556bb449eff7932552745cf0bd
3
+ metadata.gz: 9868fa25579a88e5cf7f55059d29b102a8cc966089822b52886aa1a50b212f99
4
+ data.tar.gz: a68e023f160f3f00f5c48a5babcb2df6a3c486ee4b54f39523a0fcc6502228f1
5
5
  SHA512:
6
- metadata.gz: 9851e05ca234f5ed7d569d58534e1293a07142cbbfc5623da0a9451aec18691cd583094dab6071adcac2321055c7ad09820582e55e6010496114b03433a2a45b
7
- data.tar.gz: 550920e68a8d65c7a2aa22b75b618d3e472bdc288c885da6d2f125e1aee924873be7719ee3be1a1d9b4fdc1e1463df56ed11eef6d30c8bc6704f7847eaa0a946
6
+ metadata.gz: 7fbc78a09938c912735f9ee7e6c9c1ff671a75aa0c4929127e990092d9e9e4f0d3d13c15cd4f648018b8f160f500c8e99253a4a58ff7929bfe02aab8e1680a01
7
+ data.tar.gz: 267eb4cc8b9fee49a1c218ddd18dca69c241c877b1dd70b2daf748332d4b2543c309835581a44bfb906f72ab4da81cbd68dd0fd50041d182932f06415fa0c74c
@@ -9,20 +9,7 @@ class EffectiveQbSyncDatatable < Effective::Datatable
9
9
  qb_ticket.qb_requests.length
10
10
  end
11
11
 
12
- val :orders, sort: false, as: :obfuscated_id do |qb_ticket|
13
- qb_ticket.qb_requests.select { |qb_request| qb_request.order.present? }
14
- end.format do |requests|
15
- requests.map { |qb_request| link_to "##{qb_request.order.to_param}", effective_orders.admin_order_path(qb_request.order) }
16
- .join('<br>').html_safe
17
- end.search do |collection, term, column, sql_column|
18
- order = Effective::Order.where(id: search_term).first
19
-
20
- if order.present?
21
- collection.where(id: Effective::QbRequest.where(order_id: order.id).pluck(:qb_ticket_id))
22
- else
23
- collection.none
24
- end
25
- end
12
+ col :orders
26
13
 
27
14
  actions_col do |qb_ticket|
28
15
  dropdown_link_to 'Show', effective_qb_sync.admin_qb_sync_path(qb_ticket)
@@ -31,7 +18,7 @@ class EffectiveQbSyncDatatable < Effective::Datatable
31
18
  end
32
19
 
33
20
  collection do
34
- Effective::QbTicket.deep.all
21
+ Effective::QbTicket.deep.includes(:orders).all
35
22
  end
36
23
 
37
24
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveQbSync
2
- VERSION = '1.3.3'.freeze
2
+ VERSION = '1.3.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_qb_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
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: 2021-10-22 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails