Skip to content

Commit 640785d

Browse files
Merge pull request #28 from cortex-cms/topic/COR-563-Media-GUIDs-in-URL
COR-563: GUIDs in Media URLs
2 parents 3f1c2d2 + 216f349 commit 640785d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/asset_field_type.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ def style_urls
122122
if existing_data.empty?
123123
(metadata[:styles].map { |key, value| [key, asset.url(key)] }).to_h
124124
else
125-
existing_data[:asset][:style_urls]
125+
existing_data.deep_symbolize_keys[:asset][:style_urls]
126126
end
127127
end
128128

129129
def existing_metadata
130130
metadata.except!(:existing_data)
131131

132132
unless existing_data.empty?
133-
metadata[:path].gsub(":id", existing_data['asset_field_type_id']) if metadata[:path]
133+
metadata[:path].gsub!(":id", existing_data['asset_field_type_id']) if metadata[:path]
134134
end
135135

136136
metadata

0 commit comments

Comments
 (0)