lato 3.5.5 → 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: f4dc0f435932a6eb561b49dc030c8d331ac306331ca42e9ea65a37418820c682
4
- data.tar.gz: 6cfd69cae2762adbd4790af754f9b30e4f7f621f46f0f41ab5906f7c35c43b17
3
+ metadata.gz: 40b2fafa7e4cfad77b5b9688acc2403906dc81aaf32770d7a1ee0504226a2d85
4
+ data.tar.gz: 70880d05d4f1d6a6d9d766e100a6a372428f1216f97c55536ce9db81a371b45e
5
5
  SHA512:
6
- metadata.gz: b4738ffe8f9a83428305903f6253bdf844f7e64b87aa12f061597f579b558236e14357f51f091f646010186bd8d6dcf84348de019b16e512e53fcd8040295945
7
- data.tar.gz: 645f8fad8ddcc489f954ddf704c44fa8ad1a088f20d768c9a0ce0524e19c227b62528701eabdb5ab3201e5576674873006ba3ac3ff7358c60b6ff88ed5bb5e28
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
@@ -82,7 +82,7 @@ collection_total = collection.respond_to?(:total_count) ? collection.total_count
82
82
  <tr class="align-middle">
83
83
  <% columns.each do |column| %>
84
84
  <th scope="col" class="lato-index-desk-col-label lato-index-desk-col-label-<%= column %>">
85
- <div class="d-flex align-items-center">
85
+ <div class="d-flex align-items-center justify-content-between">
86
86
  <span><%= collection_test_istance.respond_to?(column) ? collection.model.human_attribute_name(column) : lato_index_dynamic_label({
87
87
  key: key,
88
88
  model_name: model_name,
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.5.5"
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.5
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-02-23 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