X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8e404f3a468a2636481d52f245b816c41e9d5ac0..68f7df96d681d83c04beb36a173bd056a0a248cb:/config/initializers/paperclip.rb?ds=inline 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