add teams application controller
This commit is contained in:
parent
3c6e144608
commit
b9a7bcb6a4
10
app/controllers/teams/application_controller.rb
Normal file
10
app/controllers/teams/application_controller.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue