effective_datatables 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/effective/datatable.rb +2 -2
- data/lib/effective_datatables/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c62f652c8e41302e34c9a1eb54929c406a6a9bd2
|
|
4
|
+
data.tar.gz: b947f0f92c01b50c11f00dca53105ddbd636523d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
188
|
+
25
|
|
189
189
|
end
|
|
190
190
|
end
|
|
191
191
|
|