DEV: add a few frozen string literals

This commit is contained in:
Sam Saffron
2019-05-02 16:57:12 +10:00
parent 1be01f8dd4
commit 96360a779f
11 changed files with 22 additions and 0 deletions
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::AdminController < ApplicationController
requires_login
+2
View File
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::ApiController < Admin::AdminController
def index
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require "backup_restore/backup_restore"
require "backup_restore/backup_store"
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::BadgesController < Admin::AdminController
def index
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::ColorSchemesController < Admin::AdminController
before_action :fetch_color_scheme, only: [:update, :destroy]
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::DashboardController < Admin::AdminController
def index
data = AdminDashboardIndexData.fetch_cached_stats
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require_dependency 'email/renderer'
class Admin::EmailController < Admin::AdminController
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::EmailTemplatesController < Admin::AdminController
def self.email_keys
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::EmbeddableHostsController < Admin::AdminController
def create
@@ -1,3 +1,5 @@
# frozen_string_literal: true
require_dependency 'embedding'
class Admin::EmbeddingController < Admin::AdminController
+2
View File
@@ -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