OSDN Git Service

Don't set format manually, bacause set in routing.
authorSato Hiroyuki <sathiroyuki@gmail.com>
Wed, 6 Mar 2013 04:53:30 +0000 (13:53 +0900)
committerSato Hiroyuki <sathiroyuki@gmail.com>
Wed, 6 Mar 2013 07:36:10 +0000 (16:36 +0900)
lib/extracts_path.rb

index fd0050c..66b2f45 100644 (file)
@@ -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)