avo 2.11.2.pre.2 → 2.11.2.pre.3

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: ab1a9ef1d382202009c6238b84e53b78cde379babde8bbfbdf95c94d64f422ae
4
- data.tar.gz: d73bd4cf8b9125695e835f41971eff6ea37a4e0df79fb802e8eeb87b62eeb4c9
3
+ metadata.gz: 3d9e1f29fde441425a8bb70c8d3afc6f8acece76e6ac2a2dc2abc953567c6053
4
+ data.tar.gz: 8f9a42b1f4084a1846f8b1a279dd15119323cacad40054709677ac980cb7387d
5
5
  SHA512:
6
- metadata.gz: 0b6d7c8732f5e27e6963ef7e660c55a92c32740449a09924a4f0b300bf98ccb64637eb662d9f111e24d6c1a46fe0ebaa4ffc91b2e667de2189de2ba9dfbfe0c9
7
- data.tar.gz: 57c439b934e2ef860157cec05d4da4e2652d45b1da258cc4410911ef81c9e99f011acc9ef0c8fd06f5c0452a765ccb89b6c5d91af46ef3a94ca9a85fbf9cd8c0
6
+ metadata.gz: 07e9b92e4bfa7031cb8ef415c64d886f10c4e83c7b2974485f9f891f99d56bf1176ae3d576c7e2f68a4a8b202f829ca53e0978d06b2fbf0620deef581567c79c
7
+ data.tar.gz: 7700c610f99c0509b513a3180d420f28c82c403dfd4456867eb74e53178ac287d8c4d28a0c64c501b9923c0dbdc057d9940988fb222008024e836aabfb4c96ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.11.2.pre.2)
4
+ avo (2.11.2.pre.3)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -274,15 +274,8 @@ module Avo
274
274
 
275
275
  # Write the user configured extra params to the model
276
276
  if extra_params.present?
277
- extra_params.each do |param_id|
278
- # if it's a nested array, use the key
279
- param_id = param_id.first.first if param_id.is_a? Hash
280
-
281
- next unless model.respond_to? "#{param_id}="
282
-
283
- param_value = params[param_id]
284
- model.send("#{param_id}=", param_value)
285
- end
277
+ # Let Rails fill in the rest of the params
278
+ model.assign_attributes params.permit(extra_params)
286
279
  end
287
280
 
288
281
  model
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.11.2.pre.2" unless const_defined?(:VERSION)
2
+ VERSION = "2.11.2.pre.3" 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.11.2.pre.2
4
+ version: 2.11.2.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin