mongoid-data_table 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid-data_table (1.0.5)
4
+ mongoid-data_table (1.0.6)
5
5
  kaminari (~> 0.12.4)
6
6
  rails (>= 3.0.0)
7
7
 
@@ -16,7 +16,7 @@ module Mongoid
16
16
  @fields = options[:fields] || klass.data_table_fields
17
17
  @aliases = options[:aliases] || @fields
18
18
 
19
- params[:iDisplayLength] = conditions.count if params[:iDisplayLength] == -1
19
+ params[:iDisplayLength] = conditions.count if (params[:iDisplayLength].to_i rescue 0) == -1
20
20
  end
21
21
 
22
22
  def collection(force = false)
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module DataTable
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mongoid-data_table
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.5
5
+ version: 1.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jason Dew
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- hash: 2570707088203796240
149
+ hash: -4201636343347705602
150
150
  segments:
151
151
  - 0
152
152
  version: "0"
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
- hash: 2570707088203796240
158
+ hash: -4201636343347705602
159
159
  segments:
160
160
  - 0
161
161
  version: "0"