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