Commit 30ee5362 authored by Nihad Abbasov's avatar Nihad Abbasov

Merge pull request #1553 from jouve/simplify_controllers1

remove duplicate before_filter
parents e584f148 252d3a0c
class HooksController < ApplicationController class HooksController < ApplicationController
before_filter :authenticate_user!
before_filter :project before_filter :project
layout "project" layout "project"
......
class IssuesController < ApplicationController class IssuesController < ApplicationController
before_filter :authenticate_user!
before_filter :project before_filter :project
before_filter :module_enabled before_filter :module_enabled
before_filter :issue, only: [:edit, :update, :destroy, :show] before_filter :issue, only: [:edit, :update, :destroy, :show]
......
class LabelsController < ApplicationController class LabelsController < ApplicationController
before_filter :authenticate_user!
before_filter :project before_filter :project
before_filter :module_enabled before_filter :module_enabled
......
class MergeRequestsController < ApplicationController class MergeRequestsController < ApplicationController
before_filter :authenticate_user!
before_filter :project before_filter :project
before_filter :module_enabled before_filter :module_enabled
before_filter :merge_request, only: [:edit, :update, :destroy, :show, :commits, :diffs, :automerge, :automerge_check, :raw] before_filter :merge_request, only: [:edit, :update, :destroy, :show, :commits, :diffs, :automerge, :automerge_check, :raw]
......
class MilestonesController < ApplicationController class MilestonesController < ApplicationController
before_filter :authenticate_user!
before_filter :project before_filter :project
before_filter :module_enabled before_filter :module_enabled
before_filter :milestone, only: [:edit, :update, :destroy, :show] before_filter :milestone, only: [:edit, :update, :destroy, :show]
......
class SnippetsController < ApplicationController class SnippetsController < ApplicationController
before_filter :authenticate_user!
before_filter :project before_filter :project
before_filter :snippet, only: [:show, :edit, :destroy, :update, :raw] before_filter :snippet, only: [:show, :edit, :destroy, :update, :raw]
layout "project" layout "project"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment