effective_datatables 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2078d65ba5b4fed14caa8ea81158f7037f0ad89
4
- data.tar.gz: 3211bd15539cd691b614d6fd5c22c02121f7d58c
3
+ metadata.gz: c62f652c8e41302e34c9a1eb54929c406a6a9bd2
4
+ data.tar.gz: b947f0f92c01b50c11f00dca53105ddbd636523d
5
5
  SHA512:
6
- metadata.gz: 87524916edb264b4cf25d562486d4be1d4e7d48e7e38ade621e34365b21a45908840cd9312614b84e502a81b63dd02afd857e16dc053904f643a1b56beca3ac6
7
- data.tar.gz: f47f04e2268935ec522489dbc5fe9b495d153ab06e8ccbf1739acf25fb60599c11ddc9bf62730d12a4247764e0d935d9a9b3d7832f4198a532430e7003a1113b
6
+ metadata.gz: 612f522818e51701a4a717b0c534ebc0076285d6e457999db11318c660192046a6f2a4625c5716080cf1e8a5ad1bebe2ba28912d50579edb62e06d29ae3cfd6b
7
+ data.tar.gz: aad7c1379e9d15f4e1ed9faef130984738a4a1963fdd5d308fbcb4a1b5b0230f97d6b0aaf53cb0227b6e0ff9363e57aad87c1e604b78bce5be83854001578bdc
@@ -178,14 +178,14 @@ module Effective
178
178
  end
179
179
 
180
180
  def per_page
181
- length = params[:iDisplayLength].to_i
181
+ length = (params[:iDisplayLength].presence || default_entries).to_i
182
182
 
183
183
  if length == -1
184
184
  9999999
185
185
  elsif length > 0
186
186
  length
187
187
  else
188
- default_entries
188
+ 25
189
189
  end
190
190
  end
191
191
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '1.3.1'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect