diff options
author | Cyril <jv.cyril@gmail.com> | 2012-09-26 03:21:37 +0400 |
---|---|---|
committer | Cyril <jv.cyril@gmail.com> | 2012-09-27 00:27:43 +0400 |
commit | 078a8f0e662a1626b53bbf7f7c3e2b0599c94810 (patch) | |
tree | bc650d9d1fb9d5934ae09f98d9d3ba7619dfb224 /app/controllers/snippets_controller.rb | |
parent | 0439387be00bfb862b4454000f805f11fb8cc389 (diff) |
factorize before_filters and layout for projects related controllers
Diffstat (limited to 'app/controllers/snippets_controller.rb')
-rw-r--r-- | app/controllers/snippets_controller.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/snippets_controller.rb b/app/controllers/snippets_controller.rb index b00c9283694..3d404e67a86 100644 --- a/app/controllers/snippets_controller.rb +++ b/app/controllers/snippets_controller.rb @@ -1,10 +1,5 @@ -class SnippetsController < ApplicationController - before_filter :project +class SnippetsController < ProjectController before_filter :snippet, only: [:show, :edit, :destroy, :update, :raw] - layout "project" - - # Authorize - before_filter :add_project_abilities # Allow read any snippet before_filter :authorize_read_snippet! |