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 2ae6340 commit 216f349Copy full SHA for 216f349
app/models/asset_field_type.rb
@@ -122,15 +122,15 @@ def style_urls
122
if existing_data.empty?
123
(metadata[:styles].map { |key, value| [key, asset.url(key)] }).to_h
124
else
125
- existing_data[:asset][:style_urls]
+ existing_data.deep_symbolize_keys[:asset][:style_urls]
126
end
127
128
129
def existing_metadata
130
metadata.except!(:existing_data)
131
132
unless existing_data.empty?
133
- metadata[:path].gsub(":id", existing_data['asset_field_type_id']) if metadata[:path]
+ metadata[:path].gsub!(":id", existing_data['asset_field_type_id']) if metadata[:path]
134
135
136
metadata
0 commit comments