2013-01-19 12:49:15 -05:00
|
|
|
class Teams::ApplicationController < ApplicationController
|
2013-01-22 15:58:44 -05:00
|
|
|
|
2013-01-24 03:16:03 -05:00
|
|
|
layout 'user_team'
|
|
|
|
|
2013-01-22 15:58:44 -05:00
|
|
|
before_filter :authorize_manage_user_team!
|
|
|
|
|
2013-01-19 12:49:15 -05:00
|
|
|
protected
|
|
|
|
|
|
|
|
def user_team
|
2013-01-22 17:20:27 -05:00
|
|
|
@team ||= UserTeam.find_by_path(params[:team_id])
|
2013-01-22 15:58:44 -05:00
|
|
|
end
|
|
|
|
|
2013-01-19 12:49:15 -05:00
|
|
|
end
|