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

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