Skip to content
Browse files

Slightly less cryptic

  • Loading branch information...
1 parent 7e1b075 commit 4709812045220c804435eacec7cdb1a135cfa96f @ches ches committed
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

0 comments on commit 4709812

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