avo 2.11.2.pre.1 → 2.11.2.pre.2
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/app/controllers/avo/base_controller.rb +1 -1
- data/lib/avo/base_resource.rb +2 -2
- 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: ab1a9ef1d382202009c6238b84e53b78cde379babde8bbfbdf95c94d64f422ae
|
4
|
+
data.tar.gz: d73bd4cf8b9125695e835f41971eff6ea37a4e0df79fb802e8eeb87b62eeb4c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6d7c8732f5e27e6963ef7e660c55a92c32740449a09924a4f0b300bf98ccb64637eb662d9f111e24d6c1a46fe0ebaa4ffc91b2e667de2189de2ba9dfbfe0c9
|
7
|
+
data.tar.gz: 57c439b934e2ef860157cec05d4da4e2652d45b1da258cc4410911ef81c9e99f011acc9ef0c8fd06f5c0452a765ccb89b6c5d91af46ef3a94ca9a85fbf9cd8c0
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ module Avo
|
|
11
11
|
before_action :set_edit_title_and_breadcrumbs, only: [:edit, :update]
|
12
12
|
before_action :fill_model, only: [:create, :update]
|
13
13
|
# Don't run base authorizations for associations
|
14
|
-
before_action :authorize_base_action, if: -> {controller_name != "associations"}
|
14
|
+
before_action :authorize_base_action, if: -> { controller_name != "associations" }
|
15
15
|
|
16
16
|
def index
|
17
17
|
@page_title = @resource.plural_name.humanize
|
data/lib/avo/base_resource.rb
CHANGED
@@ -278,10 +278,10 @@ module Avo
|
|
278
278
|
# if it's a nested array, use the key
|
279
279
|
param_id = param_id.first.first if param_id.is_a? Hash
|
280
280
|
|
281
|
-
next unless
|
281
|
+
next unless model.respond_to? "#{param_id}="
|
282
282
|
|
283
283
|
param_value = params[param_id]
|
284
|
-
|
284
|
+
model.send("#{param_id}=", param_value)
|
285
285
|
end
|
286
286
|
end
|
287
287
|
|
data/lib/avo/version.rb
CHANGED