Welcome to mirror list, hosted at ThFree Co, Russian Federation.

application_controller.rb « projects « admin « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b3f1539f38760eb94d8c1c3da0372630c645083b (plain)
1
2
3
4
5
6
7
8
9
10
11
# Provides a base class for Admin controllers to subclass
#
# Automatically sets the layout and ensures an administrator is logged in
class Admin::Projects::ApplicationController < Admin::ApplicationController

  protected

  def project
    @project ||= Project.find_with_namespace(params[:project_id])
  end
end