avo 2.34.0 → 2.34.1

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: dce48ff1282bab4437a07c321a0099ce1755e92c96d0b82a29e2d91577b33da4
4
- data.tar.gz: de4b93b760c5177e9631c51957eda7915f817b3ab60ed8a24c8fe9be739e19f8
3
+ metadata.gz: 100010b64c0a8976cb22791e925717c9c57532e7474d12b4f6e5e108d5e51616
4
+ data.tar.gz: 332a9b69a5dd23607edcb0dd54f513d6346025e5657dcb52463f19689021fd82
5
5
  SHA512:
6
- metadata.gz: 50614474a512b8b8f22eb0a10c2c225fbe13b122bd7719109a842af0e82beccbe7d3f1977f966cd5a1316f31a08d894467afb1cf9dbd9e99745b7bf21560a281
7
- data.tar.gz: 7331125c451330a2926e980b51e8dba2e6b9072b97965aa40a1a2b7afb6367c1822185088749e55c011e0666ce4d50c95a111b51e5f1ddf175e95c8caaca5a7a
6
+ metadata.gz: ddf3b94c575b8a73d03022bd567494f3b25db186f0ce4ad4fc79dcbc99f4c9f8898f107d2abb735a6bc7bb177daa666f47f6673b76809bcd94fd91eb891a4294
7
+ data.tar.gz: dd0a86a715d33bb56f6a9685eae10acaf0b055e3bc0accbaff64e16123270eedcc48b03480eb6a088eb4d6660d4dbbeb43e3660a90a9dd066016d2377ba8ba10
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.34.0)
4
+ avo (2.34.1)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -199,9 +199,9 @@ module Avo
199
199
  def fill_field(model, key, value, params)
200
200
  return model unless model.methods.include? key.to_sym
201
201
 
202
- valid_model_class = valid_polymorphic_class params["#{polymorphic_as}_type"]
203
-
204
202
  if polymorphic_as.present?
203
+ valid_model_class = valid_polymorphic_class params["#{polymorphic_as}_type"]
204
+
205
205
  model.send("#{polymorphic_as}_type=", valid_model_class)
206
206
 
207
207
  # If the type is blank, reset the id too.
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.34.0" unless const_defined?(:VERSION)
2
+ VERSION = "2.34.1" 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.34.0
4
+ version: 2.34.1
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: 2023-06-06 00:00:00.000000000 Z
12
+ date: 2023-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord