azahara_schema 0.4.1 → 0.4.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2132a174a1520fef9fe4a25f2e04073be787db2c4c4038cb135b735db39bf947
|
|
4
|
+
data.tar.gz: 538a13989702d474192aae6f700f244919bdfbf7588a113cbfae315dcdcfcb05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3590ecc5fbd832a860ab917552c260058873370bf07c3b9b9d3b379d1c63f066cf1570503b70bf75d6a763e4802b8b70bf8e3eee1cb795bb2c80621b25235430
|
|
7
|
+
data.tar.gz: 5a856fcf275d30da1991ddcb36243a0759101a525483850146f26dc6e3c41ad8ccc0393eb8b7e686e5e15ed239f1e3f3bd03ab1869c0cd28a25ec6b111307985
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
<%= render output, local_assigns.merge(schema: schema) %>
|
|
23
23
|
<% end %>
|
|
24
24
|
<div class="exports text-right">
|
|
25
|
-
<% if (
|
|
26
|
-
<%= link_to
|
|
25
|
+
<% if (xlsx_path = azahara_export_path(schema, :xlsx)) %>
|
|
26
|
+
<%= link_to xlsx_path do %>
|
|
27
27
|
<i class="fa fa-file-o"></i>
|
|
28
|
-
<%= t('label_export_as', as: '
|
|
28
|
+
<%= t('label_export_as', as: 'XLSX') %>
|
|
29
29
|
<% end %>
|
|
30
30
|
<% end %>
|
|
31
31
|
</div>
|
|
@@ -324,7 +324,11 @@ module AzaharaSchema
|
|
|
324
324
|
#serialization
|
|
325
325
|
def from_params(params)
|
|
326
326
|
if params[:f]
|
|
327
|
-
|
|
327
|
+
if params.class == ActionController::Parameters
|
|
328
|
+
filter_params = params[:f].permit(available_filters.keys + [available_filters.keys.inject({}){|o,name| o[name] = []; o }]).to_h
|
|
329
|
+
else
|
|
330
|
+
filter_params = params[:f].slice(available_filters.keys + [available_filters.keys.inject({}){|o,name| o[name] = []; o }]).to_h
|
|
331
|
+
end
|
|
328
332
|
filter_params.each do |name, filter_value|
|
|
329
333
|
next if filter_value.blank?
|
|
330
334
|
if filter_value.is_a?(Array)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: azahara_schema
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ondřej Ezr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-11-
|
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|