lato 3.5.6 → 3.5.7

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: 483e3307bae77fd1b1958ac3a135d079c88c26956946e32f05d5579cb8ff4f18
4
- data.tar.gz: a0fbdb88be7672b6d1ee63dd84e460455214ec5c6ee3c37e7cf97bfc3f515eec
3
+ metadata.gz: 40b2fafa7e4cfad77b5b9688acc2403906dc81aaf32770d7a1ee0504226a2d85
4
+ data.tar.gz: 70880d05d4f1d6a6d9d766e100a6a372428f1216f97c55536ce9db81a371b45e
5
5
  SHA512:
6
- metadata.gz: 0171b96580ff965fd37ae3bf3cae1f08a072896b3916903017dd701cb9d5f13d835bdae907f9b0d903f2fe13733726aacf52584db23dd95dc7cf381a3c85437c
7
- data.tar.gz: a85c0609a7ea4ac253b16fc3e65b47e453d83237869534255fb448b07abfd1cfdb3087f512c705a57d4ef951ebb8f6d9ba2455cd5e8302e3c0f3053669fa8637
6
+ metadata.gz: 19a4ed51d714596e89402f1c5de57d1a96ea287f62949fb7ecf16e6cfcad5b12d3dc089e7b8c4c63a447d57d92f544c0dd417a1ee179ee01600fc4c8b6307b67
7
+ data.tar.gz: 75d9a24c89ea2bb21dbf7beb7a1bf248e55d10a15324a9487e7244473c9147a669266b72431b1ea49441e3114b204993afe274e93bafc36c57005950311e0d66
@@ -37,7 +37,7 @@ module Lato
37
37
  if collection.respond_to?(:lato_index_search)
38
38
  collection = collection.lato_index_search(search)
39
39
  else
40
- query = @_lato_index[key][:searchable_columns].map { |k| "lower(#{k}) LIKE :search" }
40
+ query = @_lato_index[key][:searchable_columns].map { |k| "lower(string(#{k})) LIKE :search" }
41
41
  collection = collection.where(query.join(' OR '), search: "%#{search.downcase.strip}%")
42
42
  end
43
43
  end
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.5.6"
2
+ VERSION = "3.5.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.6
4
+ version: 3.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-13 00:00:00.000000000 Z
11
+ date: 2024-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails