application_controller.rb 222 Bytes
Newer Older
1
class Teams::ApplicationController < ApplicationController
2

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
3 4
  layout 'user_team'

5 6
  before_filter :authorize_manage_user_team!

7 8 9
  protected

  def user_team
10
    @team ||= UserTeam.find_by_path(params[:team_id])
11 12
  end

13
end