We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6becf3 commit 4816ebaCopy full SHA for 4816eba
app/presenters/v3/route_presenter.rb
@@ -34,7 +34,6 @@ def to_hash
34
port: route.port,
35
url: build_url,
36
destinations: RouteDestinationsPresenter.new(route.route_mappings, route:).presented_destinations,
37
- options: route.options,
38
metadata: {
39
labels: hashified_labels(route.labels),
40
annotations: hashified_annotations(route.annotations)
@@ -49,6 +48,9 @@ def to_hash
49
48
},
50
links: build_links
51
}
+ unless route.options.nil?
52
+ hash.merge!(options: route.options)
53
+ end
54
55
@decorators.reduce(hash) { |memo, d| d.decorate(memo, [route]) }
56
end
0 commit comments