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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::AdminController < ApplicationController
requires_login

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::ApiController < Admin::AdminController
def index

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "backup_restore/backup_restore"
require "backup_restore/backup_store"

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::BadgesController < Admin::AdminController
def index

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::ColorSchemesController < Admin::AdminController
before_action :fetch_color_scheme, only: [:update, :destroy]

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::DashboardController < Admin::AdminController
def index
data = AdminDashboardIndexData.fetch_cached_stats

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_dependency 'email/renderer'
class Admin::EmailController < Admin::AdminController

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::EmailTemplatesController < Admin::AdminController
def self.email_keys

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
class Admin::EmbeddableHostsController < Admin::AdminController
def create

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_dependency 'embedding'
class Admin::EmbeddingController < Admin::AdminController

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