Don't set format manually, bacause set in routing.
This commit is contained in:
parent
bb63459d53
commit
e7a67a5583
1 changed files with 0 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue