smart_table 0.0.4 → 0.0.5
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/helpers/smart_table/smart_table_helper.rb +2 -2
- data/lib/smart_table/version.rb +1 -1
- data/smart_table-0.0.4.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba1612bca724e81920b129619b676d94e8251e85b4407eabf72233d1f9799f49
|
|
4
|
+
data.tar.gz: 0ebc044ba6a5800b19b52caf1b012569e04a0b20cd485e9f8e561d2b2f642e2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 25fddbf8a0bd48ad3207f00c17256c39016f426bf86832fb356fbe6cb9e5ccaed5e46a07f3e90583b2ce0a8849582b2e549d7f4d96df69680c857278d1971e8b
|
|
7
|
+
data.tar.gz: b800887f2091e5902f99b2365999cab55a1b81f92a58c443aa4b29c78c312d5f59b4a40354459155b89b3b455542e5ce1b70e64b811575319b786180b21f221d
|
|
@@ -34,7 +34,7 @@ module SmartTable
|
|
|
34
34
|
|
|
35
35
|
html_elements << content_tag(:div, class: 'text-center') do
|
|
36
36
|
# call to Kaminari view helper
|
|
37
|
-
page_entries_info(paginatable_array, entry_name: record_model_name.downcase)
|
|
37
|
+
page_entries_info(paginatable_array, entry_name: record_model_name.pluralize.downcase)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
html_elements.join.html_safe
|
|
@@ -109,7 +109,7 @@ module SmartTable
|
|
|
109
109
|
|
|
110
110
|
page_sizes = PAGE_SIZES.dup
|
|
111
111
|
page_sizes << get_cached_smart_table_params.page_size.to_i if get_cached_smart_table_params.page_size
|
|
112
|
-
page_sizes.sort!
|
|
112
|
+
page_sizes.uniq!.sort!
|
|
113
113
|
|
|
114
114
|
if page_sizes.last >= total_records_count || get_cached_smart_table_params.page_size.nil?
|
|
115
115
|
page_sizes.reject! {|size| size > total_records_count}
|
data/lib/smart_table/version.rb
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_table
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henrique Gubert
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-07-
|
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -189,6 +189,7 @@ files:
|
|
|
189
189
|
- "./smart_table-0.0.1.gem"
|
|
190
190
|
- "./smart_table-0.0.2.gem"
|
|
191
191
|
- "./smart_table-0.0.3.gem"
|
|
192
|
+
- "./smart_table-0.0.4.gem"
|
|
192
193
|
- "./smart_table.gemspec"
|
|
193
194
|
- "./spec/dummy_app/Rakefile"
|
|
194
195
|
- "./spec/dummy_app/app/assets/config/manifest.js"
|