Add BlameController, remove Refs#blame action

This commit is contained in:
Robert Speicher 2012-09-17 13:36:13 -04:00
parent 37f0b600bc
commit 39c6579306
8 changed files with 57 additions and 27 deletions

View file

@ -136,14 +136,6 @@ Gitlab::Application.routes.draw do
id: /[a-zA-Z.0-9\/_\-]+/,
path: /.*/
}
# blame
get "blame/:path" => "refs#blame",
as: :blame_file,
constraints: {
id: /[a-zA-Z.0-9\/_\-]+/,
path: /.*/
}
end
end
@ -204,7 +196,7 @@ Gitlab::Application.routes.draw do
end
# XXX: WIP
# resources :blame, only: [:show], constraints: {id: /.+/}
resources :blame, only: [:show], constraints: {id: /.+/}
# resources :blob, only: [:show], constraints: {id: /.+/}
# resources :raw, only: [:show], constraints: {id: /.+/}
resources :tree, only: [:show], constraints: {id: /.+/}