effective_datatables 2.6.2 → 2.6.3
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.
- checksums.yaml +4 -4
- data/app/models/effective/datatable.rb +2 -2
- data/lib/effective_datatables/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89650689f933090e188f7f97fa874585a6ed80e9
|
4
|
+
data.tar.gz: 292f7c4078fe2626e739ae6ac05bc8ca13ae3ae0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8dea3d9a6ae53f4cbd38cf79b01805d01de6d9711a860240f72feb65ef1457ab5d94f83995e3511bb0e3e71ff7d4f33f8a4f0909eed04630f0633c9edc27dda
|
7
|
+
data.tar.gz: 0c83c4f5009cb5f12c9d5aee0ae4e132bce70ea73f3b26556ad10718fe4931ff3f2575bf5b06911911eef5c82bed363f7d6cee5405f8670ffb737b7856e7eb85
|
@@ -124,9 +124,9 @@ module Effective
|
|
124
124
|
if active_record_collection?
|
125
125
|
if collection_class.connection.respond_to?(:unprepared_statement)
|
126
126
|
collection_sql = collection_class.connection.unprepared_statement { collection.to_sql }
|
127
|
-
(collection_class.connection.
|
127
|
+
(collection_class.connection.exec_query("SELECT COUNT(*) FROM (#{collection_sql}) AS datatables_total_count").rows[0][0] rescue 1).to_i
|
128
128
|
else
|
129
|
-
(collection_class.connection.
|
129
|
+
(collection_class.connection.exec_query("SELECT COUNT(*) FROM (#{collection.to_sql}) AS datatables_total_count").rows[0][0] rescue 1).to_i
|
130
130
|
end
|
131
131
|
else
|
132
132
|
collection.size
|
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.6.
|
4
|
+
version: 2.6.3
|
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-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|