tabulatr2 0.9.23 → 0.9.24

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: 7cc65aecf5813eb304729cedce44b15893762cdb
4
- data.tar.gz: fca65814e3ec5b98de6bb5bab46cfdb821efe846
3
+ metadata.gz: 2a72f0789980c0098fd9594b85ce09abb2e67283
4
+ data.tar.gz: b75b64f51f675909452f1b60103fd782a38e5437
5
5
  SHA512:
6
- metadata.gz: f976950ab4491a9fc32029fa7c6a36a9fe83c4612c8911784b39da1aeb7d4753706407cbb21aad6402ffb307b1e19d423791cddc55c8852329337f7089e3206e
7
- data.tar.gz: 600284636f985253ff4785bdd128cf9e224f0d9a9504abeef1a580f08862896901ef531d1c8d7b017a94868834c72074cd2d00cc387d4c2a2253bfa8a61a6c95
6
+ metadata.gz: 201998ddae1023364a745d6690cdc071013c7b807a3bd14962dd28261fc4ec7546e87228f26c30bf59b19f32eac280e3be62034401a90572f28167f0a3e32958
7
+ data.tar.gz: c500600edfb9dcf650855165e27e61b041c640472e5773e5bce4a8b58b9db0c58e2e4aec64f53904dd66c6776810bad49e6ed364e447e74950aa35b62595f86f
@@ -195,5 +195,3 @@
195
195
  }
196
196
  }
197
197
  }
198
-
199
- @import 'font-awesome';
@@ -28,7 +28,8 @@ module Tabulatr::Data::Pagination
28
28
  end
29
29
 
30
30
  def compute_pagination(page, pagesize)
31
- count = @relation.to_a.size
31
+ count = @relation.count
32
+ count = count.count if count.is_a?(Hash)
32
33
  page ||= 1
33
34
  pagesize, page = pagesize.to_i, page.to_i
34
35
 
@@ -22,5 +22,5 @@
22
22
  #++
23
23
 
24
24
  module Tabulatr
25
- VERSION = "0.9.23"
25
+ VERSION = "0.9.24"
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.9.23
4
+ version: 0.9.24
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: 2015-09-11 00:00:00.000000000 Z
13
+ date: 2015-11-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails