Commit b9a7bcb6a45c343f51aea49bccf38722e49c949c
Committed by
Dmitriy Zaporozhets
1 parent
3c6e1446
Exists in
master
and in
4 other branches
add teams application controller
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,10 @@ |
1 | +class Teams::ApplicationController < ApplicationController | |
2 | + before_filter :user_team, only: [:index, :show, :edit, :update, :destroy, :issues, :merge_requests, :search, :members] | |
3 | + | |
4 | + protected | |
5 | + | |
6 | + def user_team | |
7 | + @user_team ||= UserTeam.find_by_path(params[:team_id]) | |
8 | + end | |
9 | + | |
10 | +end | ... | ... |