Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Slightly less cryptic

  • Loading branch information...
commit 4709812045220c804435eacec7cdb1a135cfa96f 1 parent 7e1b075
@ches ches authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/gridfs.rb
View
2  lib/rack/gridfs.rb
@@ -40,7 +40,7 @@ def normalize_options(options)
options.tap do |opts|
opts[:prefix] ||= "gridfs"
opts[:prefix].gsub!(/^\//, '')
- opts[:mapper] ||= lambda { |p| p[%r{^/#{options[:prefix]}/(.+)}, 1] }
+ opts[:mapper] ||= lambda { |path| %r!^/#{options[:prefix]}/(.+)!.match(path)[1] }
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.