@@ -20,11 +20,11 @@ def parse_representer_property(property)
20
20
documentation = property [ :documentation ] ? property [ :documentation ] . dup : { }
21
21
22
22
if property [ :decorator ] && property [ :nested ]
23
- representer_mapping ( property [ :decorator ] , documentation , is_a_collection : is_a_collection , nested : property [ :nested ] )
23
+ representer_mapping ( property [ :decorator ] , documentation , is_a_collection , false , property [ :nested ] )
24
24
elsif property [ :decorator ]
25
- representer_mapping ( property [ :decorator ] , documentation , is_a_collection : is_a_collection , is_a_decorator : true )
25
+ representer_mapping ( property [ :decorator ] , documentation , is_a_collection , true )
26
26
elsif property [ :nested ]
27
- representer_mapping ( property [ :nested ] , documentation , is_a_collection : is_a_collection )
27
+ representer_mapping ( property [ :nested ] , documentation , is_a_collection )
28
28
else
29
29
memo = {
30
30
description : documentation [ :desc ] || ''
@@ -52,7 +52,7 @@ def parse_representer_property(property)
52
52
end
53
53
end
54
54
55
- def representer_mapping ( representer , documentation , is_a_collection : false , is_a_decorator : false , nested : nil )
55
+ def representer_mapping ( representer , documentation , is_a_collection = false , is_a_decorator = false , nested = nil )
56
56
if nested . nil? && is_a_decorator
57
57
name = endpoint . send ( :expose_params_from_model , representer )
58
58
0 commit comments