OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb63459
)
Don't set format manually, bacause set in routing.
author
Sato Hiroyuki
<sathiroyuki@gmail.com>
Wed, 6 Mar 2013 04:53:30 +0000
(13:53 +0900)
committer
Sato Hiroyuki
<sathiroyuki@gmail.com>
Wed, 6 Mar 2013 07:36:10 +0000
(16:36 +0900)
lib/extracts_path.rb
patch
|
blob
|
history
diff --git
a/lib/extracts_path.rb
b/lib/extracts_path.rb
index
fd0050c
..
66b2f45
100644
(file)
--- 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)