Commit b9a7bcb6a45c343f51aea49bccf38722e49c949c

Authored by Andrey Kumanyaev
Committed by Dmitriy Zaporozhets
1 parent 3c6e1446

add teams application controller

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
app/controllers/teams/application_controller.rb 0 → 100644
@@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
  1 +class Teams::ApplicationController < ApplicationController
  2 + before_filter :user_team, only: [:index, :show, :edit, :update, :destroy, :issues, :merge_requests, :search, :members]
  3 +
  4 + protected
  5 +
  6 + def user_team
  7 + @user_team ||= UserTeam.find_by_path(params[:team_id])
  8 + end
  9 +
  10 +end