data_tables 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/data_tables.gemspec +1 -1
  2. data/lib/data_tables.rb +1 -1
  3. metadata +2 -2
data/data_tables.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'data_tables'
5
- s.version = '0.1.14'
5
+ s.version = '0.1.15'
6
6
  s.date = Time.now.strftime("%Y-%m-%d")
7
7
  s.summary = "Rails friendly interface into DataTables"
8
8
  s.description = "DataTables for Rails"
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 : nil }.compact
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.14
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-08-20 00:00:00.000000000 Z
16
+ date: 2013-09-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  type: :development