Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Slightly less cryptic

  • Loading branch information...
commit 4709812045220c804435eacec7cdb1a135cfa96f 1 parent 7e1b075
Ches Martin authored May 10, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/rack/gridfs.rb
2  lib/rack/gridfs.rb
@@ -40,7 +40,7 @@ def normalize_options(options)
40 40
       options.tap do |opts|
41 41
         opts[:prefix] ||= "gridfs"
42 42
         opts[:prefix].gsub!(/^\//, '')
43  
-        opts[:mapper] ||= lambda { |p| p[%r{^/#{options[:prefix]}/(.+)}, 1] }
  43
+        opts[:mapper] ||= lambda { |path| %r!^/#{options[:prefix]}/(.+)!.match(path)[1] }
44 44
       end
45 45
     end
46 46
 

0 notes on commit 4709812

Please sign in to comment.
Something went wrong with that request. Please try again.