gitlabhq/app/controllers/teams/application_controller.rb
2013-01-24 22:31:24 +02:00

11 lines
280 B
Ruby

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