tabulatr2 0.8.3 → 0.8.4

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: fd5b1a160633c8bae84ebece41b6f6d308665ec3
4
- data.tar.gz: a0f086d976130d0dd0d7606df9be042466f4a563
3
+ metadata.gz: f040295cd2078f84e9b0379bb3de019cfbef72fd
4
+ data.tar.gz: fffd809f5632e690cfd1506ea37e936e28c4ce27
5
5
  SHA512:
6
- metadata.gz: 5100e0221f28bbcc286e290e69657bc1ba4df72d1bcebd19742605222ab954270c019e6cf7a6a6efcd74f66594f839807b3797bce579951cb1e0c3bcc528a53c
7
- data.tar.gz: 75fabed7e79bd0c2e7200295b7cb20addf0e88b45ced815dec84375b4c775ea22fce2fbb64c517cfeda3939c14200ea154abd7d2a2ff4c41cc787f62c77d1a21
6
+ metadata.gz: d235adcae54d4509002c521f03fd68e97f79f590a103b1a91b07fecf91d09b02d372aaf7f3601cf0cace1c3462df04f444aeeea0fbae9774197ea46fbf2af689
7
+ data.tar.gz: 8e96e7988fd8bd40b496625fce9e063352109cce1ad3b7955ff4758b62e0c5442a9a138f1adcefd3415a136308cb29cfbe3629788fa9250060df988700995e7f
@@ -44,6 +44,10 @@ class Tabulatr::Data
44
44
  @batch_actions = block if block_given?
45
45
 
46
46
  execute_batch_actions(batch_params(params), check_params(params))
47
+
48
+ # count
49
+ total = @relation.count
50
+
47
51
  # prepare the query
48
52
  apply_filters(filter_params params)
49
53
  apply_search(search_param params)
@@ -60,7 +64,6 @@ class Tabulatr::Data
60
64
 
61
65
  append = params[:append].present? ? Tabulatr::Utility.string_to_boolean(params[:append]) : false
62
66
 
63
- total = @relation.unscope(:where, :limit, :offset).count
64
67
 
65
68
  # prepare result for rendering
66
69
  found.define_singleton_method(:__pagination) do
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.8.3"
25
+ VERSION = "0.8.4"
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabulatr2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Horn
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-04 00:00:00.000000000 Z
13
+ date: 2013-11-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails