effective_datatables 2.3.4 → 2.3.5

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: 61fdda73bca46f3fac6996b85d4e000db3ac6f9b
4
- data.tar.gz: e91cba908d1a30b568e02a1d02ae91d6733c879e
3
+ metadata.gz: 8f12687a7e59e60d5d83ef635ccee022e7676632
4
+ data.tar.gz: 725e625cdb1b90f1cb2fefd75c69365cf4daa256
5
5
  SHA512:
6
- metadata.gz: 0b8d01ab1792f45495e72d1e8e046b63334dfb221f552dea25c15ba4b268e881f4825cdfc0287ca23939e82c2335bb6ba278fce1141de6efa404b351eb2c1dc2
7
- data.tar.gz: 695a6922a5232b08f97ff8de268fc93725f6a12301db020229f707cc100a37067f6db172474c690394c2eb276cdfa4f9f6717c58b555c0318d8bbcb4f37eeef2
6
+ metadata.gz: f8fcbb7c27722e311c20f12ffe367a218e5b6426e4ca4dbb1b42d88ec5e23e9a706e27494deb398678b81a948f8b8c9cdee60726c4b21fc13ed255ff1c78288c
7
+ data.tar.gz: 22ff6533be1ea51a818e8d8d8432abdf8a3a846ca641087c67c0aea77d6d0a467e323f68aa37c0c8b3c522b12e46eb0c69c7c70ef9913d9d99e05413073df23c
@@ -23,9 +23,9 @@ module Effective
23
23
  index = display_index(order_column)
24
24
 
25
25
  if order_direction == 'ASC'
26
- collection.sort! { |x, y| x[index] <=> y[index] }
26
+ collection.sort! { |x, y| (x[index] && y[index]) ? (x[index] <=> y[index]) : 0 }
27
27
  else
28
- collection.sort! { |x, y| y[index] <=> x[index] }
28
+ collection.sort! { |x, y| (x[index] && y[index]) ? (y[index] <=> x[index]) : 0 }
29
29
  end
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '2.3.4'.freeze
2
+ VERSION = '2.3.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-14 00:00:00.000000000 Z
11
+ date: 2016-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  requirements: []
211
211
  rubyforge_project:
212
- rubygems_version: 2.4.5.1
212
+ rubygems_version: 2.4.6
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Uniquely powerful server-side searching, sorting and filtering of any ActiveRecord