DEV: add a few frozen string literals

DEV: add a few frozen string literals

diff --git a/app/controllers/admin/admin_controller.rb b/app/controllers/admin/admin_controller.rb
index 2a33fd6..b4728b2 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 0c39edc..1af4a40 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 3fe1141..76e9e9c 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 e54860d..90da2ff 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 a5caf3d..7929235 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 e4b2faf..eb246d7 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 4a09d01..a668f71 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 aa9eef4..d00fca8 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 ee59743..5a59882 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 8f86a9a..d1b645e 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 0e7f02a..299fc2d 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

GitHub sha: 96360a77

2 Likes