objectreload-pagination 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/pagination/collection.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -19,7 +19,7 @@ module Pagination
|
|
19
19
|
else
|
20
20
|
@current_page = options[:current_page].to_i
|
21
21
|
@per_page = options[:per_page].to_i
|
22
|
-
self.total_entries ||= @collection.count
|
22
|
+
self.total_entries ||= @collection.count(:id, :distinct => true)
|
23
23
|
end
|
24
24
|
|
25
25
|
raise InvalidPage.new(@current_page) if @current_page < 1
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 3
|
9
|
+
version: 0.1.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mateusz Drozdzynski
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-02 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|