update new controllers

This commit is contained in:
Cyril 2012-09-27 13:44:53 +02:00
parent e563e948bb
commit 933c5e4146
5 changed files with 5 additions and 28 deletions

View file

@ -1,13 +1,8 @@
# Controller for viewing a repository's file structure
class TreeController < ApplicationController
class TreeController < ProjectController
include ExtractsPath
layout "project"
before_filter :project
# Authorize
before_filter :add_project_abilities
before_filter :authorize_read_project!
before_filter :authorize_code_access!
before_filter :require_non_empty_project