effective_datatables 2.6.2 → 2.6.3

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: 3c5c7ab8d7724c124432c84b68f30e64319d63b7
4
- data.tar.gz: 7043d4ee61a22130f4e4340fe7777c0918c48511
3
+ metadata.gz: 89650689f933090e188f7f97fa874585a6ed80e9
4
+ data.tar.gz: 292f7c4078fe2626e739ae6ac05bc8ca13ae3ae0
5
5
  SHA512:
6
- metadata.gz: 980a3fe2449272c706a29db50e6f1df851d189d85593e948cfeb71ee273a1b4bc2628a69397da7aadc6b6fee1a42d008cda90d621b78f86350bdc90bb676afcb
7
- data.tar.gz: bb5fb08f1e8dcd8eb42741804dda7c2dce61dc2157cef64fbbf81eba752b240ef33a1f018fc6b81e6a58b723959b37bba4da48d1bd6294a650283a5508b43d22
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.execute("SELECT COUNT(*) FROM (#{collection_sql}) AS datatables_total_count").first.values.first rescue 1).to_i
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.execute("SELECT COUNT(*) FROM (#{collection.to_sql}) AS datatables_total_count").first.values.first rescue 1).to_i
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '2.6.2'.freeze
2
+ VERSION = '2.6.3'.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.6.2
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-07-19 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails