factorize before_filters and layout for projects related controllers
This commit is contained in:
parent
0439387be0
commit
078a8f0e66
17 changed files with 33 additions and 101 deletions
|
@ -1,11 +1,7 @@
|
|||
require "base64"
|
||||
|
||||
class CommitsController < ApplicationController
|
||||
before_filter :project
|
||||
layout "project"
|
||||
|
||||
class CommitsController < ProjectController
|
||||
# Authorize
|
||||
before_filter :add_project_abilities
|
||||
before_filter :authorize_read_project!
|
||||
before_filter :authorize_code_access!
|
||||
before_filter :require_non_empty_project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue