avo 2.14.3.pre.6.nosprockets → 2.14.3.pre.7.polytranslations1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 565538415a5ed1733da872c8903dc0cddf6a24558cca9e040a6f7b768ad82f7f
4
- data.tar.gz: 3dfc9368da855f08dda7d1fcb21c2f3c69a733e5897cd171cc1a06907086e1c1
3
+ metadata.gz: '08e8a7a0b1ecf1e365341c775e703357f735d907284d362bf3f35c09639e2a2d'
4
+ data.tar.gz: 67f15cd7898525ea94de74f7957efdffa259c7d4fc5c0d3275d58184b9c5c4ac
5
5
  SHA512:
6
- metadata.gz: 969484a4ccd27ef10c6d4ca5436ea3fc06cc21d49cc94400d80a6b589e103fe4aa34b64aea03536f0f1a3b120b067fe7f9c8db74606c52e6aa116e938bbd4d39
7
- data.tar.gz: ceaf6c589699126528d1408f50f3321da8ac33d7a313de9881b797d882a6d01dbf3c77cce57d788102516f5d343f857044d51f9c8846023c944cd27ad3b0a357
6
+ metadata.gz: 0e12474cfb3fbc1a2e0bdda53510ad05983f0712f8b1ed45f9bd1755edb632baae5d2b160aaf38e591a4d32dacf7668af9060eeccb5df4417f86b37c667f13ae
7
+ data.tar.gz: 1175c1f975c4426dff88a75e388d18d6b4e509c8a78556b4a5fe492dc87317a5f3ffd0d2b043304b077d09e7c1a02f0c9b07cd27b7aa3d197f8b775a8b1cc749
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.14.3.pre.6.nosprockets)
4
+ avo (2.14.3.pre.7.polytranslations1)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -13,7 +13,7 @@
13
13
  data-association-class="<%= @field&.target_resource&.model_class || nil %>"
14
14
  >
15
15
  <%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, help: @field.polymorphic_help || '' do %>
16
- <%= @form.select @field.type_input_foreign_key, @field.types.map { |type| [type.to_s.underscore.humanize, type.to_s] },
16
+ <%= @form.select @field.type_input_foreign_key, @field.types.map { |type| [::Avo::App.get_resource_by_model_name(type.to_s).name, type.to_s] },
17
17
  {
18
18
  value: @field.value,
19
19
  include_blank: @field.placeholder,
@@ -40,7 +40,7 @@
40
40
  data-belongs-to-field-target="type"
41
41
  data-type="<%= type %>"
42
42
  >
43
- <%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, label: type.to_s.underscore.humanize do %>
43
+ <%= edit_field_wrapper field: @field, index: @index, form: @form, resource: @resource, displayed_in_modal: @displayed_in_modal, label: ::Avo::App.get_resource_by_model_name(type.to_s).name do %>
44
44
  <% if @field.searchable %>
45
45
  <%= render Avo::Fields::BelongsToField::AutocompleteComponent.new form: @form,
46
46
  disabled: disabled,
@@ -70,14 +70,8 @@ module Avo
70
70
 
71
71
  file_name = "#{file_name}.svg" unless file_name.end_with? ".svg"
72
72
 
73
- if defined?(Webpacker)
74
- with_asset_finder(Webpacker::WebpackAssetFinder) do
75
- inline_svg file_name, **args
76
- end
77
- else
78
- with_asset_finder(::Avo::SvgFinder) do
79
- inline_svg file_name, **args
80
- end
73
+ with_asset_finder(::Avo::SvgFinder) do
74
+ inline_svg file_name, **args
81
75
  end
82
76
  end
83
77
 
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.14.3.pre.6.nosprockets" unless const_defined?(:VERSION)
2
+ VERSION = "2.14.3.pre.7.polytranslations1" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.3.pre.6.nosprockets
4
+ version: 2.14.3.pre.7.polytranslations1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-01 00:00:00.000000000 Z
12
+ date: 2022-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails