Skip to content
Snippets Groups Projects
Commit e7a67a55 authored by Sato Hiroyuki's avatar Sato Hiroyuki
Browse files

Don't set format manually, bacause set in routing.

parent bb63459d
No related branches found
No related tags found
No related merge requests found
Loading
@@ -105,12 +105,6 @@ module ExtractsPath
Loading
@@ -105,12 +105,6 @@ module ExtractsPath
# Automatically renders `not_found!` if a valid tree path could not be # Automatically renders `not_found!` if a valid tree path could not be
# resolved (e.g., when a user inserts an invalid path or ref). # resolved (e.g., when a user inserts an invalid path or ref).
def assign_ref_vars 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) path = CGI::unescape(request.fullpath.dup)
   
@ref, @path = extract_ref(path) @ref, @path = extract_ref(path)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment