Skip to content

Commit

Permalink
Rename a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarini authored and ches committed Apr 18, 2011
1 parent c5e1758 commit 7d63fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rack/gridfs/endpoint/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7d63fb0

Please sign in to comment.