effective_orders 3.1.0 → 3.1.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
  SHA256:
3
- metadata.gz: f8a648d7e8218c51c4733d02e64c542fcebf91d04d5bb78c457a1fa835e2b319
4
- data.tar.gz: f062fbd9fd8973ea30c1c62e470a327d6d4cac533606a65cfbe43fbc19fd7418
3
+ metadata.gz: 2a44d926ef3b5778ccedeb057cb96ed9d0df5e63642ef26851db9d4df4a4e0f7
4
+ data.tar.gz: 222f7df06cf76aa2d39ab3c428744057eed9468f4838c6230612ac6bda81ed55
5
5
  SHA512:
6
- metadata.gz: 317b8781f567e20c92ed714b7f7aa823b4de332722fb7d054eaa4134888f95495b5ac138e4677ae746a0566a522e9f346279f53b950bb129c5dd188fe3c3cd50
7
- data.tar.gz: 931166730fdbed8d51a34fc3bea22b8d791644050a2673ba74093c7f158b7a187b7de8b5580f94d0b23448d2e9427bf1feda17c89bd5ca83cd65d4caca9a16a3
6
+ metadata.gz: 3218139fa9780d82e159d83498e35589fbe99115b59e076b2cc1c27f033a1a6f7e91fbcc4eb9eb4d7161a6a28a1dbac3ecbaf42026f305d08a7aa986ddc95211
7
+ data.tar.gz: 0c6b49680dac2b6f4044484f15ed197b32ce145433ff67171331896f0251cba6e4f8b1e2341fa2913a73fb5fd1278d65ee8f7a45ce7bda14dc65a028a6ed7e5d
@@ -23,9 +23,11 @@ class EffectiveOrdersDatatable < Effective::Datatable
23
23
  col :purchased_at
24
24
 
25
25
  if EffectiveOrders.obfuscate_order_ids
26
- col(:id, as: :obfuscated_id) do |order|
26
+ col(:id, sort: false) do |order|
27
27
  obfuscated_id = order.to_param
28
28
  link_to(obfuscated_id, (admin_namespace? ? effective_orders.admin_order_path(obfuscated_id) : effective_orders.order_path(obfuscated_id)))
29
+ end.search do |collection, term|
30
+ collection.where(id: Effective::Order.deobfuscate(term))
29
31
  end
30
32
  else
31
33
  col :id
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '3.1.3'.freeze
3
3
  end
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: 3.1.0
4
+ version: 3.1.3
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: 2019-08-08 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails