DEV: add a few frozen string literals
This commit is contained in:
parent
1be01f8dd4
commit
96360a779f
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::AdminController < ApplicationController
|
class Admin::AdminController < ApplicationController
|
||||||
|
|
||||||
requires_login
|
requires_login
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::ApiController < Admin::AdminController
|
class Admin::ApiController < Admin::AdminController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "backup_restore/backup_restore"
|
require "backup_restore/backup_restore"
|
||||||
require "backup_restore/backup_store"
|
require "backup_restore/backup_store"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::BadgesController < Admin::AdminController
|
class Admin::BadgesController < Admin::AdminController
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::ColorSchemesController < Admin::AdminController
|
class Admin::ColorSchemesController < Admin::AdminController
|
||||||
|
|
||||||
before_action :fetch_color_scheme, only: [:update, :destroy]
|
before_action :fetch_color_scheme, only: [:update, :destroy]
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::DashboardController < Admin::AdminController
|
class Admin::DashboardController < Admin::AdminController
|
||||||
def index
|
def index
|
||||||
data = AdminDashboardIndexData.fetch_cached_stats
|
data = AdminDashboardIndexData.fetch_cached_stats
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_dependency 'email/renderer'
|
require_dependency 'email/renderer'
|
||||||
|
|
||||||
class Admin::EmailController < Admin::AdminController
|
class Admin::EmailController < Admin::AdminController
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::EmailTemplatesController < Admin::AdminController
|
class Admin::EmailTemplatesController < Admin::AdminController
|
||||||
|
|
||||||
def self.email_keys
|
def self.email_keys
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Admin::EmbeddableHostsController < Admin::AdminController
|
class Admin::EmbeddableHostsController < Admin::AdminController
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_dependency 'embedding'
|
require_dependency 'embedding'
|
||||||
|
|
||||||
class Admin::EmbeddingController < Admin::AdminController
|
class Admin::EmbeddingController < Admin::AdminController
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class MetadataController < ApplicationController
|
class MetadataController < ApplicationController
|
||||||
layout false
|
layout false
|
||||||
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required
|
skip_before_action :preload_json, :check_xhr, :redirect_to_login_if_required
|
||||||
|
|
Loading…
Reference in New Issue