gitlabhq/app/controllers/admin/teams/application_controller.rb

13 lines
324 B
Ruby
Raw Normal View History

# 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
before_filter :user_team
private
def user_team
@team = UserTeam.find_by_path(params[:team_id])
end
end