Permalink
Browse files

Rename a variable

  • Loading branch information...
1 parent c5e1758 commit 7d63fb00cdc84abf4650e407508c877dd70461b8 @bmarini bmarini committed with ches Feb 6, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rack/gridfs/endpoint/base.rb
@@ -17,14 +17,14 @@ def initialize(options = {})
def call(env)
with_rescues do
request = Rack::Request.new(env)
- id = identifier_for_path(request.path_info)
- file = find_file(id)
+ key = key_for_path(request.path_info)
+ file = find_file(key)
response_for(file, request)
end
end
- def identifier_for_path(path)
+ def key_for_path(path)
@mapper.respond_to?(:call) ? @mapper.call(path) : path
end

0 comments on commit 7d63fb0

Please sign in to comment.