[#345] remove unneeded constraint

This commit is contained in:
Alexander Machehin 2014-03-26 00:44:06 +06:00
parent 4adae8319b
commit 5a02ed077b
1 changed files with 37 additions and 39 deletions

View File

@ -357,7 +357,6 @@ Rosa::Application.routes.draw do
post '/sections' => 'projects#sections' post '/sections' => 'projects#sections'
delete '/remove_user' => 'projects#remove_user', as: :remove_user_project delete '/remove_user' => 'projects#remove_user', as: :remove_user_project
# constraints treeish: /[\w\-\.]+(\/[\w\-\.]+)?/ do # constraints treeish: /[\w\-\.]+(\/[\w\-\.]+)?/ do
constraints treeish: /[\w\-\.]+/ do
constraints Rosa::Constraints::Treeish do constraints Rosa::Constraints::Treeish do
# Tree # Tree
get '/' => "git/trees#show", as: :project get '/' => "git/trees#show", as: :project
@ -398,7 +397,6 @@ Rosa::Application.routes.draw do
end end
end end
end end
end
scope ':uname' do # project owner profile scope ':uname' do # project owner profile
constraints Rosa::Constraints::Owner.new(User) do constraints Rosa::Constraints::Owner.new(User) do