Skip to content
Snippets Groups Projects
Commit be42c050 authored by gfyoung's avatar gfyoung
Browse files

Enable more frozen string in app/controllers/

Enables frozen string for the following:

* app/controllers/dashboard/**/*.rb
* app/controllers/explore/**/*.rb
* app/controllers/google_api/**/*.rb
* app/controllers/groups/**/*.rb
* app/controllers/import/**/*.rb
* app/controllers/instance_statistics/**/*.rb
* app/controllers/ldap/**/*.rb
* app/controllers/oauth/**/*.rb
* app/controllers/profiles/**/*.rb

Partially addresses #47424.
parent 4c8d2232
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 Dashboard::ApplicationController < ApplicationController
include ControllerWithCrossProjectAccessCheck
 
Loading
Loading
# frozen_string_literal: true
class Dashboard::GroupsController < Dashboard::ApplicationController
include GroupTree
 
Loading
Loading
# frozen_string_literal: true
class Dashboard::LabelsController < Dashboard::ApplicationController
def index
respond_to do |format|
Loading
Loading
# frozen_string_literal: true
class Dashboard::MilestonesController < Dashboard::ApplicationController
include MilestoneActions
 
Loading
Loading
# frozen_string_literal: true
class Dashboard::ProjectsController < Dashboard::ApplicationController
include ParamsBackwardCompatibility
include RendersMemberAccess
Loading
Loading
# frozen_string_literal: true
class Dashboard::SnippetsController < Dashboard::ApplicationController
skip_cross_project_access_check :index
 
Loading
Loading
# frozen_string_literal: true
class Dashboard::TodosController < Dashboard::ApplicationController
include ActionView::Helpers::NumberHelper
 
Loading
Loading
# frozen_string_literal: true
class Explore::ApplicationController < ApplicationController
skip_before_action :authenticate_user!
 
Loading
Loading
# frozen_string_literal: true
class Explore::GroupsController < Explore::ApplicationController
include GroupTree
 
Loading
Loading
# frozen_string_literal: true
class Explore::ProjectsController < Explore::ApplicationController
include ParamsBackwardCompatibility
include RendersMemberAccess
Loading
Loading
# frozen_string_literal: true
class Explore::SnippetsController < Explore::ApplicationController
def index
@snippets = SnippetsFinder.new(current_user).execute
Loading
Loading
# frozen_string_literal: true
module GoogleApi
class AuthorizationsController < ApplicationController
def callback
Loading
Loading
# frozen_string_literal: true
class Groups::ApplicationController < ApplicationController
include RoutableActions
include ControllerWithCrossProjectAccessCheck
Loading
Loading
# frozen_string_literal: true
class Groups::AvatarsController < Groups::ApplicationController
before_action :authorize_admin_group!
 
Loading
Loading
# frozen_string_literal: true
class Groups::BoardsController < Groups::ApplicationController
include BoardsResponses
 
Loading
Loading
# frozen_string_literal: true
module Groups
class ChildrenController < Groups::ApplicationController
before_action :group
Loading
Loading
# frozen_string_literal: true
class Groups::GroupMembersController < Groups::ApplicationController
include MembershipActions
include MembersPresentation
Loading
Loading
# frozen_string_literal: true
class Groups::LabelsController < Groups::ApplicationController
include ToggleSubscriptionAction
 
Loading
Loading
# frozen_string_literal: true
class Groups::MilestonesController < Groups::ApplicationController
include MilestoneActions
 
Loading
Loading
# frozen_string_literal: true
class Groups::RunnersController < Groups::ApplicationController
# Proper policies should be implemented per
# https://gitlab.com/gitlab-org/gitlab-ce/issues/45894
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