avo 2.13.5.pre.1 → 2.13.5.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ac27367850b66ed5118891624a6480086e08d5e781a186cc766af138cff1c77
|
4
|
+
data.tar.gz: 59c4765ea8e68bbfc5e088c6b9a3bad11c3f8ece23f3090793299ea414094086
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce476b0f388b16f1f27e96e94499a30fe35a59acea7997aa5a72f16ba0e85bf86d1b2f79481b69eb32504bcb58a27f7355a4e004983072e216fd117b9c836e67
|
7
|
+
data.tar.gz: 413d0a5063903155f3915a309d8291d5cea91192d971b4899b7ed5a8a21eae7f295458aacb34eaa10f2ccea76656a0c9b01393a4048769d9b7587882f3bc6ce2
|
data/Gemfile.lock
CHANGED
@@ -9,10 +9,9 @@ class Avo::BaseComponent < ViewComponent::Base
|
|
9
9
|
|
10
10
|
private
|
11
11
|
|
12
|
-
#
|
12
|
+
# Use the @parent_resource to fetch the field using the @reflection name.
|
13
13
|
def field
|
14
|
-
|
15
|
-
fields.find { |f| f.id == @reflection.name }
|
14
|
+
@parent_resource.get_field_definitions.find { |f| f.id == @reflection.name }
|
16
15
|
rescue
|
17
16
|
nil
|
18
17
|
end
|
@@ -4,9 +4,6 @@ class Avo::Views::ResourceEditComponent < Avo::ResourceComponent
|
|
4
4
|
include Avo::ResourcesHelper
|
5
5
|
include Avo::ApplicationHelper
|
6
6
|
|
7
|
-
attr_reader :resource
|
8
|
-
attr_reader :view
|
9
|
-
|
10
7
|
def initialize(resource: nil, model: nil, actions: [], view: :edit)
|
11
8
|
@resource = resource
|
12
9
|
@model = model
|
data/lib/avo/version.rb
CHANGED