ransacker_translator 0.1.3 → 0.1.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: 8633aee62921eee8dca30c1ffb78be7283e1c348727d0398041c51918b5281c3
4
- data.tar.gz: 2eda830220d76a5cfeb063fb4636807564b7a39b24fd001201cb725c2b056f26
3
+ metadata.gz: 4142dadc90a0239e95cc7d735d0818fa4e15c3cf6e728c9a88e47b9f544b478e
4
+ data.tar.gz: 2f9a21baf16f9cdca2ad5486f6e729df5ed8458ee3a1f0846c0a8c21901bd03a
5
5
  SHA512:
6
- metadata.gz: 424c6b78251e4dc7136cc3957639a023bd0f0ca1ba15720604eaa5c73a0f1c6b677360f21c888d11baaa167ea93653305e0c8ba77d480707c0a755d3dd159c67
7
- data.tar.gz: e90f11fda5259f4997bf40343001f1996945e2c607cc6056e8d90d138fd56107d8008228705d9a97738fb5f4d3c00a9f5f222d069ca0729f87ac3a5c01001956
6
+ metadata.gz: ceb6b75ed939e5befbe57942194b1332929685d126283cdeda65089d554d49b0505c0d945e5326893f650a98a045a9bbd1bb1cd58cd855e2b3ecedacc4086aeb
7
+ data.tar.gz: 2bc87dff591366cd75020989e97b653a24307d4de61e0b41bd384bd53c3e3909d9e964c8a790783f60efdfefe5bb70792b9727d3445967396178ea577df84eef
@@ -7,7 +7,7 @@ module RansackerTranslator
7
7
  private
8
8
 
9
9
  def format_ransack_params
10
- params[:q]&.keys.each do |key|
10
+ params[:q]&.keys&.each do |key|
11
11
  if key.end_with?('_all', '_any') && params.dig(:q, key).instance_of?(String)
12
12
  params[:q][key] = params.dig(:q, key).split(' ')
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module RansackerTranslator
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ransacker_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - patorash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-23 00:00:00.000000000 Z
11
+ date: 2021-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord