]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/paperclip.rb
Change Where am I to Where is this on left sidebar
[rails.git] / config / initializers / paperclip.rb
index 75f6d237115ce98db0f511c7da073d434a502e7a..e27c46ea70a406fd08425cec7be982de97021e88 100644 (file)
@@ -5,7 +5,7 @@ module Paperclip
     def for(style_name, options)
       url = super(style_name, options)
 
     def for(style_name, options)
       url = super(style_name, options)
 
-      if url =~ /^\/assets\/(.*)$/
+      if url =~ %r{^/assets/(.*)$}
         asset_path($1)
       else
         url
         asset_path($1)
       else
         url