summaryrefslogtreecommitdiff
path: root/app/controllers/commit_controller.rb
diff options
context:
space:
mode:
authorCyril <jv.cyril@gmail.com>2012-09-27 13:44:53 +0200
committerCyril <jv.cyril@gmail.com>2012-09-27 13:44:53 +0200
commit933c5e414600d5e0170213db574ba6431c1444e4 (patch)
tree1dbb5540b1cc8e004c0866b1ebff17711c7f5f28 /app/controllers/commit_controller.rb
parente563e948bb907a26c4a170eaec0f3976fdf11d74 (diff)
downloadgitlab-ce-933c5e414600d5e0170213db574ba6431c1444e4.tar.gz
update new controllers
Diffstat (limited to 'app/controllers/commit_controller.rb')
-rw-r--r--app/controllers/commit_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/commit_controller.rb b/app/controllers/commit_controller.rb
index de0d5b2ee7d..3e1595f169f 100644
--- a/app/controllers/commit_controller.rb
+++ b/app/controllers/commit_controller.rb
@@ -1,12 +1,8 @@
# Controller for a specific Commit
#
# Not to be confused with CommitsController, plural.
-class CommitController < ApplicationController
- before_filter :project
- layout "project"
-
+class CommitController < ProjectController
# Authorize
- before_filter :add_project_abilities
before_filter :authorize_read_project!
before_filter :authorize_code_access!
before_filter :require_non_empty_project