kadmin 0.6.17 → 0.6.18

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
  SHA1:
3
- metadata.gz: b2d7a22a6f9b43e59a0811e5c275678f53ea1cf7
4
- data.tar.gz: 31846248abc3f5bfca71efa5a4762d0aae6417db
3
+ metadata.gz: 2237f5504554a5bf69b8f2a2eab80c7db7c3c317
4
+ data.tar.gz: 74fc2e9b9643be406d7678763985a77f29732ab8
5
5
  SHA512:
6
- metadata.gz: d4b018b334d3c452e9ee214d60f9727f4c1b13dd09fbb54c0826fbefe25f6067369d18e1c847471c1d10963e5e159096cf721af58052ef70d15d7950f0a3c321
7
- data.tar.gz: 99f5b53d27456616fb8f9aabeab2e0c2a84feef410dec1d72c486171ee71d62ffa918147a2407559f06e76b3fe559e80f15992f8b11d0b7bf2018ee3337c97d7
6
+ metadata.gz: ff6ff3a5628fe00994b35c2fdf0c075518bbb0a97a25fadb9109a3ed7db3bfa2488683c519b8d42a54e2f79529cbcf1ed357742c3ed603df59d46edc705524f8
7
+ data.tar.gz: eda9e006f70fe5d8cd0a35cd3ac41727ae299b78e05e1e83165cc1fbc1ce9373d040d536f43001612a135430ee44967c9b08d93c6235919cc7e704bc288a07a2
@@ -77,6 +77,15 @@
77
77
  }
78
78
  }
79
79
 
80
+ // FINDER
81
+ .finder {
82
+ overflow: scroll;
83
+
84
+ td {
85
+ word-wrap: break-word;
86
+ }
87
+ }
88
+
80
89
  // PAGES
81
90
 
82
91
  .page-header {
@@ -31,7 +31,7 @@ module Kadmin
31
31
  if column.present?
32
32
  @filters[name] = Kadmin::Finder::Filter.new(column, value)
33
33
  if value.present?
34
- search_value = ActiveRecord::Base.sanitize("%#{value}%".squeeze('%'))
34
+ search_value = ActiveRecord::Base.connection.quote("%#{value}%".squeeze('%'))
35
35
  filters = Array.wrap(column).map do |column_name|
36
36
  %(`#{@scope.table_name}`.`#{column_name}` LIKE #{search_value})
37
37
  end
@@ -1,5 +1,5 @@
1
1
  <% hide_create_button = false if local_assigns[:hide_create_button].nil? %>
2
- <div class='card'>
2
+ <div class='card finder'>
3
3
  <div class='card-block'>
4
4
  <%= render partial: 'kadmin/components/finder/header', locals: { finder: finder, hide_create_button: hide_create_button } %>
5
5
  <div class='container-fluid'>
@@ -1,3 +1,3 @@
1
1
  module Kadmin
2
- VERSION = '0.6.17'.freeze
2
+ VERSION = '0.6.18'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.17
4
+ version: 0.6.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Pepin-Perreault
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-05-09 00:00:00.000000000 Z
13
+ date: 2017-06-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails