data_tables 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/data_tables.gemspec +1 -1
- data/lib/data_tables.rb +1 -1
- metadata +2 -2
data/data_tables.gemspec
CHANGED
data/lib/data_tables.rb
CHANGED
@@ -265,7 +265,7 @@ module DataTablesController
|
|
265
265
|
sort_column = columns[sort_column_id]
|
266
266
|
condstr = params[:sSearch].strip.gsub(/_/, '\\\\_').gsub(/%/, '\\\\%')
|
267
267
|
|
268
|
-
search_columns = options[:columns].map{|e| e.class == Symbol ? e :
|
268
|
+
search_columns = options[:columns].map{|e| e.class == Symbol ? e : e[:attribute] }.compact
|
269
269
|
condition_local = search_columns.map do |column_name|
|
270
270
|
" ((text(#{column_name}) ILIKE '%#{condstr}%')) "
|
271
271
|
end.compact.join(" OR ")
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: data_tables
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.15
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Duane Compton
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2013-
|
16
|
+
date: 2013-09-05 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
type: :development
|