Move admin team members management to own controller

This commit is contained in:
Andrey Kumanyaev 2013-01-20 15:25:16 +04:00 committed by Dmitriy Zaporozhets
parent 9d318db48f
commit 9804b7df68
9 changed files with 173 additions and 23 deletions

View file

@ -0,0 +1,12 @@
# 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