Skip to content
Snippets Groups Projects
Commit 711e9f07 authored by Stan Hu's avatar Stan Hu
Browse files

Merge branch 'frozen-string-app-controller' into 'master'

Enable frozen string in app/controllers/**/*.rb

See merge request gitlab-org/gitlab-ce!21736
parents 9dff8567 73322a0e
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 40 additions and 0 deletions
# frozen_string_literal: true
class AbuseReportsController < ApplicationController
before_action :set_user, only: [:new]
 
Loading
Loading
# frozen_string_literal: true
class Admin::AbuseReportsController < Admin::ApplicationController
# rubocop: disable CodeReuse/ActiveRecord
def index
Loading
Loading
# frozen_string_literal: true
class Admin::AppearancesController < Admin::ApplicationController
before_action :set_appearance, except: :create
 
Loading
Loading
# frozen_string_literal: true
# Provides a base class for Admin controllers to subclass
#
# Automatically sets the layout and ensures an administrator is logged in
Loading
Loading
# frozen_string_literal: true
class Admin::ApplicationSettingsController < Admin::ApplicationController
include InternalRedirect
before_action :set_application_setting
Loading
Loading
# frozen_string_literal: true
class Admin::ApplicationsController < Admin::ApplicationController
include OauthApplications
 
Loading
Loading
# frozen_string_literal: true
class Admin::BackgroundJobsController < Admin::ApplicationController
def show
ps_output, _ = Gitlab::Popen.popen(%W(ps ww -U #{Gitlab.config.gitlab.user} -o pid,pcpu,pmem,stat,start,command))
Loading
Loading
# frozen_string_literal: true
class Admin::BroadcastMessagesController < Admin::ApplicationController
include BroadcastMessagesHelper
 
Loading
Loading
# frozen_string_literal: true
class Admin::DashboardController < Admin::ApplicationController
include CountHelper
 
Loading
Loading
# frozen_string_literal: true
class Admin::DeployKeysController < Admin::ApplicationController
before_action :deploy_keys, only: [:index]
before_action :deploy_key, only: [:destroy, :edit, :update]
Loading
Loading
# frozen_string_literal: true
class Admin::GitalyServersController < Admin::ApplicationController
def index
@gitaly_servers = Gitaly::Server.all
Loading
Loading
# frozen_string_literal: true
class Admin::GroupsController < Admin::ApplicationController
include MembersPresentation
 
Loading
Loading
# frozen_string_literal: true
class Admin::HealthCheckController < Admin::ApplicationController
def show
@errors = HealthCheck::Utils.process_checks(['standard'])
Loading
Loading
# frozen_string_literal: true
class Admin::HookLogsController < Admin::ApplicationController
include HooksExecution
 
Loading
Loading
# frozen_string_literal: true
class Admin::HooksController < Admin::ApplicationController
include HooksExecution
 
Loading
Loading
# frozen_string_literal: true
class Admin::IdentitiesController < Admin::ApplicationController
before_action :user
before_action :identity, except: [:index, :new, :create]
Loading
Loading
# frozen_string_literal: true
class Admin::ImpersonationTokensController < Admin::ApplicationController
before_action :user
 
Loading
Loading
# frozen_string_literal: true
class Admin::ImpersonationsController < Admin::ApplicationController
skip_before_action :authenticate_admin!
before_action :authenticate_impersonator!
Loading
Loading
# frozen_string_literal: true
class Admin::JobsController < Admin::ApplicationController
# rubocop: disable CodeReuse/ActiveRecord
def index
Loading
Loading
# frozen_string_literal: true
class Admin::KeysController < Admin::ApplicationController
before_action :user, only: [:show, :destroy]
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment