summaryrefslogtreecommitdiff
path: root/app/controllers/teams
diff options
context:
space:
mode:
authorAndrey Kumanyaev <me@zzet.org>2013-01-19 21:49:15 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-24 22:31:24 +0200
commitb9a7bcb6a45c343f51aea49bccf38722e49c949c (patch)
tree0c498c7083c3708c5aa05ef8de01c0fe7a839a8d /app/controllers/teams
parent3c6e144608b655ff1b43ec33baf020d19d460ba8 (diff)
downloadgitlab-ce-b9a7bcb6a45c343f51aea49bccf38722e49c949c.tar.gz
add teams application controller
Diffstat (limited to 'app/controllers/teams')
-rw-r--r--app/controllers/teams/application_controller.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/teams/application_controller.rb b/app/controllers/teams/application_controller.rb
new file mode 100644
index 00000000000..1cfb0e0991a
--- /dev/null
+++ b/app/controllers/teams/application_controller.rb
@@ -0,0 +1,10 @@
+class Teams::ApplicationController < ApplicationController
+ before_filter :user_team, only: [:index, :show, :edit, :update, :destroy, :issues, :merge_requests, :search, :members]
+
+ protected
+
+ def user_team
+ @user_team ||= UserTeam.find_by_path(params[:team_id])
+ end
+
+end