alchemy-custom-model 3.0.0 → 3.1.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2317c60439cb8da60f62ae80809fd4b70993e0bf7f9a8102a821c8163f75ec51
|
4
|
+
data.tar.gz: 2e2fc95122b44aa40c849985a98a5306597e680310a2aa6fe3ea4dfa5750ce25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89cec5b88d99fb5db9f0ddbb7fc918c52d5889d747e76699af0cc623817aa800d3e9f0d650f2e1446eeab99f305421f24161b4349eba4643c4f8a4ce7aa40bfa
|
7
|
+
data.tar.gz: a95507e567669799eae556bea29d30952580359d83ffa83e799723aa464b3edb1684390f2dfe316b208347da05fb4de41a1dd9480111ca928d63265c18b4e244
|
@@ -392,7 +392,7 @@ module Alchemy::Custom::Model::Admin::BaseHelper
|
|
392
392
|
|
393
393
|
def order_path(obj = nil, options = {})
|
394
394
|
if obj.nil?
|
395
|
-
new_polymorphic_path([:admin, base_class.to_s.pluralize.underscore, :order])
|
395
|
+
new_polymorphic_path([:admin, base_class.to_s.pluralize.underscore.to_sym, :order])
|
396
396
|
else
|
397
397
|
new_polymorphic_path([:admin, obj, :order])
|
398
398
|
end
|
@@ -31,22 +31,22 @@
|
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
34
|
-
if can?(:export_csv, base_class) and check_presence_polymorphic_path([:export_csv, :admin, base_class.to_s.demodulize.pluralize.underscore ], :get, format: :csv)
|
34
|
+
if can?(:export_csv, base_class) and check_presence_polymorphic_path([:export_csv, :admin, base_class.to_s.demodulize.pluralize.underscore.to_sym ], :get, format: :csv)
|
35
35
|
buttons << {
|
36
36
|
icon: "download",
|
37
37
|
label: t(:export_selected_data),
|
38
|
-
url: polymorphic_path([:export_csv, :admin, base_class.to_s.demodulize.pluralize.underscore], {format: :csv}.merge(request.query_parameters) ),
|
38
|
+
url: polymorphic_path([:export_csv, :admin, base_class.to_s.demodulize.pluralize.underscore.to_sym], {format: :csv}.merge(request.query_parameters) ),
|
39
39
|
title: t(:export_selected_data),
|
40
40
|
dialog: false,
|
41
41
|
if_permitted_to: [:export_csv, base_class]
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
45
|
-
if can?(:export_csv_full, base_class) and check_presence_polymorphic_path([:export_csv_full, :admin, base_class.to_s.demodulize.pluralize.underscore ], :get, format: :csv)
|
45
|
+
if can?(:export_csv_full, base_class) and check_presence_polymorphic_path([:export_csv_full, :admin, base_class.to_s.demodulize.pluralize.underscore.to_sym ], :get, format: :csv)
|
46
46
|
buttons << {
|
47
47
|
icon: "file-archive",
|
48
48
|
label: t(:export_all_data),
|
49
|
-
url: polymorphic_path([:export_csv_full, :admin, base_class.to_s.demodulize.pluralize.underscore],format: :csv),
|
49
|
+
url: polymorphic_path([:export_csv_full, :admin, base_class.to_s.demodulize.pluralize.underscore.to_sym],format: :csv),
|
50
50
|
title: t(:export_all_data),
|
51
51
|
dialog: false,
|
52
52
|
if_permitted_to: [:export_csv_full, base_class]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy-custom-model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Baccanelli
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: alchemy_cms
|