recordselect 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/record_select/actions.rb +1 -0
- data/lib/record_select/version.rb +1 -1
- metadata +3 -3
@@ -6,6 +6,7 @@ module RecordSelect
|
|
6
6
|
conditions = record_select_conditions
|
7
7
|
klass = record_select_model
|
8
8
|
@count = klass.count(:conditions => conditions, :include => record_select_includes)
|
9
|
+
@count = @count.length if @count.is_a? ActiveSupport::OrderedHash
|
9
10
|
pager = ::Paginator.new(@count, record_select_config.per_page) do |offset, per_page|
|
10
11
|
klass.find(:all, :offset => offset,
|
11
12
|
:select => record_select_select||"*",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recordselect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 3.1.
|
9
|
+
- 5
|
10
|
+
version: 3.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sergio Cambra
|