12 lines
297 B
Ruby
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
|