Skip to content

Commit c6719f0

Browse files
dombesztoy
andauthored
Use flat array for schema representer cache key.
Co-authored-by: Ivan Kuchin <[email protected]>
1 parent 43f612f commit c6719f0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/api/v3/projects/schemas/project_schema_representer.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,7 @@ def section_cache_key(section)
152152
section.id,
153153
I18n.locale,
154154
represented.model,
155-
represented.model.available_custom_fields.sort_by(&:id)]
156-
.flatten
157-
.compact
155+
*represented.model.available_custom_fields.sort_by(&:id)]
158156
end
159157
end
160158
end

0 commit comments

Comments
 (0)