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

12 lines
297 B
Ruby

# Provides a base class for Admin controllers to subclass
#
# Automatically sets the layout and ensures an administrator is logged in
class Admin::Teams::ApplicationController < Admin::ApplicationController
private
def user_team
@team = UserTeam.find_by_path(params[:team_id])
end
end