X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..d1d4f8192da5a266cddb17bb8970b2b04387888c:/config/initializers/paperclip.rb?ds=sidebyside diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index 75f6d2371..e27c46ea7 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -5,7 +5,7 @@ module Paperclip def for(style_name, options) url = super(style_name, options) - if url =~ /^\/assets\/(.*)$/ + if url =~ %r{^/assets/(.*)$} asset_path($1) else url