From e7a67a55832aa8d7bf7d52ac07bf2850c9118633 Mon Sep 17 00:00:00 2001 From: Sato Hiroyuki Date: Wed, 6 Mar 2013 13:53:30 +0900 Subject: [PATCH] Don't set format manually, bacause set in routing. --- lib/extracts_path.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/extracts_path.rb b/lib/extracts_path.rb index fd0050cfd5f..66b2f450545 100644 --- a/lib/extracts_path.rb +++ b/lib/extracts_path.rb @@ -105,12 +105,6 @@ module ExtractsPath # Automatically renders `not_found!` if a valid tree path could not be # resolved (e.g., when a user inserts an invalid path or ref). def assign_ref_vars - # Handle formats embedded in the id - if params[:id].ends_with?('.atom') - params[:id].gsub!(/\.atom$/, '') - request.format = :atom - end - path = CGI::unescape(request.fullpath.dup) @ref, @path = extract_ref(path)