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: cc513864d0af1d5cd7f41920d50b2c0c5ce7fdb5e7dcd499cba0133b1c6b2370
4
- data.tar.gz: 0c48c0bb5aff124b19f19db0c943295d2e5081cb770137b218c121012039a9cb
3
+ metadata.gz: 2317c60439cb8da60f62ae80809fd4b70993e0bf7f9a8102a821c8163f75ec51
4
+ data.tar.gz: 2e2fc95122b44aa40c849985a98a5306597e680310a2aa6fe3ea4dfa5750ce25
5
5
  SHA512:
6
- metadata.gz: c252ab1b1bbcd71b7681b4f9310049f5517b328e71df390cf63530f5cb3e76e4da023a630ed23a312cf3cd02f2ab1c2e86abe85b584e65eec44a66204001a0a6
7
- data.tar.gz: 3c06811e1ec6d0ea5b747cdf0ea89e5119f8db87e9c384e7a6bfa31bcf51d30c058fe4e6fdf183eff4d3688e0c50c9fd12c9a465dfa18a279bda6445d94c9357
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]
@@ -1,7 +1,7 @@
1
1
  module Alchemy
2
2
  module Custom
3
3
  module Model
4
- VERSION = '3.0.0'
4
+ VERSION = '3.1.0'
5
5
  end
6
6
  end
7
7
  end
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.0.0
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-04-29 00:00:00.000000000 Z
12
+ date: 2021-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: alchemy_cms