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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f12687a7e59e60d5d83ef635ccee022e7676632
|
4
|
+
data.tar.gz: 725e625cdb1b90f1cb2fefd75c69365cf4daa256
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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
|
+
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-
|
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.
|
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
|