Permalink
Browse files

Version bump 1.0.6 and fix iDisplayLength issue.

  • Loading branch information...
1 parent f7ea01d commit 0f8e0d75aae7e368e9897f6f1dcee6fe6962d5b8 @potatosalad committed Jun 8, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 Gemfile.lock
  2. +1 −1 lib/mongoid/data_table/proxy.rb
  3. +1 −1 lib/mongoid/data_table/version.rb
View
2 Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- mongoid-data_table (1.0.5)
+ mongoid-data_table (1.0.6)
kaminari (~> 0.12.4)
rails (>= 3.0.0)
View
2 lib/mongoid/data_table/proxy.rb
@@ -16,7 +16,7 @@ def initialize(klass, controller, options = {}, &block)
@fields = options[:fields] || klass.data_table_fields
@aliases = options[:aliases] || @fields
- params[:iDisplayLength] = conditions.count if params[:iDisplayLength] == -1
+ params[:iDisplayLength] = conditions.count if (params[:iDisplayLength].to_i rescue 0) == -1
end
def collection(force = false)
View
2 lib/mongoid/data_table/version.rb
@@ -1,5 +1,5 @@
module Mongoid
module DataTable
- VERSION = "1.0.5"
+ VERSION = "1.0.6"
end
end

0 comments on commit 0f8e0d7

Please sign in to comment.