X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9a9b045372a6f48420a9a6dacfde52c34ab7abce..3f59e829264f2f1b4897c6d2c1bd93abe8f52c24:/config/initializers/paperclip.rb diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index e27c46ea7..4db3166ae 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -6,7 +6,7 @@ module Paperclip url = super(style_name, options) if url =~ %r{^/assets/(.*)$} - asset_path($1) + asset_path(Regexp.last_match(1)) else url end