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 b8e7f83 commit 1c75541Copy full SHA for 1c75541
app/models/asset_field_type.rb
@@ -130,6 +130,6 @@ def updated_url(path)
130
# that will be added later and we don't want to duplicate it
131
# Then remove the old file extension and replace it with the paperclipp'd new one
132
new_path = URI.parse(path).path.slice(1..-1)
133
- new_path.gsub(/\.\w{2,6}$/, ".:extension")
+ new_path.gsub(File.extname(path), ".:extension")
134
end
135
0 commit comments