]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/paperclip.rb
Switch to using kramdown for markdown formatting
[rails.git] / config / initializers / paperclip.rb
index e27c46ea70a406fd08425cec7be982de97021e88..4db3166ae9a4419003f541bc53772ddc557e9dc6 100644 (file)
@@ -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