From 96360a779ffc47f6c03a666874bcd9d4ea5f41ef Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 2 May 2019 16:57:12 +1000 Subject: [PATCH] DEV: add a few frozen string literals --- app/controllers/admin/admin_controller.rb | 2 ++ app/controllers/admin/api_controller.rb | 2 ++ app/controllers/admin/backups_controller.rb | 2 ++ app/controllers/admin/badges_controller.rb | 2 ++ app/controllers/admin/color_schemes_controller.rb | 2 ++ app/controllers/admin/dashboard_controller.rb | 2 ++ app/controllers/admin/email_controller.rb | 2 ++ app/controllers/admin/email_templates_controller.rb | 2 ++ app/controllers/admin/embeddable_hosts_controller.rb | 2 ++ app/controllers/admin/embedding_controller.rb | 2 ++ app/controllers/metadata_controller.rb | 2 ++ 11 files changed, 22 insertions(+) diff --git a/app/controllers/admin/admin_controller.rb b/app/controllers/admin/admin_controller.rb index 2a33fd6c906..b4728b2d5af 100644 --- a/app/controllers/admin/admin_controller.rb +++ b/app/controllers/admin/admin_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::AdminController < ApplicationController requires_login diff --git a/app/controllers/admin/api_controller.rb b/app/controllers/admin/api_controller.rb index 0c39edc98b2..1af4a40d0b2 100644 --- a/app/controllers/admin/api_controller.rb +++ b/app/controllers/admin/api_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::ApiController < Admin::AdminController def index diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rb index 3fe1141ed87..76e9e9cb7b9 100644 --- a/app/controllers/admin/backups_controller.rb +++ b/app/controllers/admin/backups_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "backup_restore/backup_restore" require "backup_restore/backup_store" diff --git a/app/controllers/admin/badges_controller.rb b/app/controllers/admin/badges_controller.rb index e54860d0855..90da2ffaf1e 100644 --- a/app/controllers/admin/badges_controller.rb +++ b/app/controllers/admin/badges_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::BadgesController < Admin::AdminController def index diff --git a/app/controllers/admin/color_schemes_controller.rb b/app/controllers/admin/color_schemes_controller.rb index a5caf3de621..79292350908 100644 --- a/app/controllers/admin/color_schemes_controller.rb +++ b/app/controllers/admin/color_schemes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::ColorSchemesController < Admin::AdminController before_action :fetch_color_scheme, only: [:update, :destroy] diff --git a/app/controllers/admin/dashboard_controller.rb b/app/controllers/admin/dashboard_controller.rb index e4b2faf9b65..eb246d75e54 100644 --- a/app/controllers/admin/dashboard_controller.rb +++ b/app/controllers/admin/dashboard_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::DashboardController < Admin::AdminController def index data = AdminDashboardIndexData.fetch_cached_stats diff --git a/app/controllers/admin/email_controller.rb b/app/controllers/admin/email_controller.rb index 4a09d01ccc7..a668f71eea8 100644 --- a/app/controllers/admin/email_controller.rb +++ b/app/controllers/admin/email_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_dependency 'email/renderer' class Admin::EmailController < Admin::AdminController diff --git a/app/controllers/admin/email_templates_controller.rb b/app/controllers/admin/email_templates_controller.rb index aa9eef412f7..d00fca83f22 100644 --- a/app/controllers/admin/email_templates_controller.rb +++ b/app/controllers/admin/email_templates_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::EmailTemplatesController < Admin::AdminController def self.email_keys diff --git a/app/controllers/admin/embeddable_hosts_controller.rb b/app/controllers/admin/embeddable_hosts_controller.rb index ee59743f920..5a59882f9b7 100644 --- a/app/controllers/admin/embeddable_hosts_controller.rb +++ b/app/controllers/admin/embeddable_hosts_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Admin::EmbeddableHostsController < Admin::AdminController def create diff --git a/app/controllers/admin/embedding_controller.rb b/app/controllers/admin/embedding_controller.rb index 8f86a9a22d2..d1b645e17ed 100644 --- a/app/controllers/admin/embedding_controller.rb +++ b/app/controllers/admin/embedding_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require_dependency 'embedding' class Admin::EmbeddingController < Admin::AdminController diff --git a/app/controllers/metadata_controller.rb b/app/controllers/metadata_controller.rb index 0e7f02a2f63..299fc2d5b8f 100644 --- a/app/controllers/metadata_controller.rb +++ b/app/controllers/metadata_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class MetadataController < ApplicationController layout false skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required