Commit e7a67a55832aa8d7bf7d52ac07bf2850c9118633
1 parent
bb63459d
Exists in
master
and in
4 other branches
Don't set format manually, bacause set in routing.
Showing
1 changed file
with
0 additions
and
6 deletions
Show diff stats
lib/extracts_path.rb
@@ -105,12 +105,6 @@ module ExtractsPath | @@ -105,12 +105,6 @@ module ExtractsPath | ||
105 | # Automatically renders `not_found!` if a valid tree path could not be | 105 | # Automatically renders `not_found!` if a valid tree path could not be |
106 | # resolved (e.g., when a user inserts an invalid path or ref). | 106 | # resolved (e.g., when a user inserts an invalid path or ref). |
107 | def assign_ref_vars | 107 | def assign_ref_vars |
108 | - # Handle formats embedded in the id | ||
109 | - if params[:id].ends_with?('.atom') | ||
110 | - params[:id].gsub!(/\.atom$/, '') | ||
111 | - request.format = :atom | ||
112 | - end | ||
113 | - | ||
114 | path = CGI::unescape(request.fullpath.dup) | 108 | path = CGI::unescape(request.fullpath.dup) |
115 | 109 | ||
116 | @ref, @path = extract_ref(path) | 110 | @ref, @path = extract_ref(path) |