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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/avo/base_resource.rb +2 -9
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d9e1f29fde441425a8bb70c8d3afc6f8acece76e6ac2a2dc2abc953567c6053
|
4
|
+
data.tar.gz: 8f9a42b1f4084a1846f8b1a279dd15119323cacad40054709677ac980cb7387d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07e9b92e4bfa7031cb8ef415c64d886f10c4e83c7b2974485f9f891f99d56bf1176ae3d576c7e2f68a4a8b202f829ca53e0978d06b2fbf0620deef581567c79c
|
7
|
+
data.tar.gz: 7700c610f99c0509b513a3180d420f28c82c403dfd4456867eb74e53178ac287d8c4d28a0c64c501b9923c0dbdc057d9940988fb222008024e836aabfb4c96ae
|
data/Gemfile.lock
CHANGED
data/lib/avo/base_resource.rb
CHANGED
@@ -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
|
-
|
278
|
-
|
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