recordselect 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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||"*",
@@ -2,7 +2,7 @@ module RecordSelect
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- PATCH = 4
5
+ PATCH = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 1
9
- - 4
10
- version: 3.1.4
9
+ - 5
10
+ version: 3.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Cambra