application_controller.rb 222 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 class Teams::ApplicationController < ApplicationController layout 'user_team' before_filter :authorize_manage_user_team! protected def user_team @team ||= UserTeam.find_by_path(params[:team_id]) end end