summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
commit5861160ffc350a97b5ff41465fbd7e03008853e4 (patch)
treead260a758b0c88c42debd6b567d6cd382d27ae42 /config/initializers
parent9f4a4be01a48eb2cbb30f8786aee3b9fec830f19 (diff)
downloadredmine-5861160ffc350a97b5ff41465fbd7e03008853e4.tar.gz
redmine-5861160ffc350a97b5ff41465fbd7e03008853e4.zip
Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/00-core_plugins.rb2
-rw-r--r--config/initializers/10-patches.rb2
-rw-r--r--config/initializers/20-mime_types.rb2
-rw-r--r--config/initializers/30-redmine.rb2
-rw-r--r--config/initializers/backtrace_silencers.rb2
-rw-r--r--config/initializers/inflections.rb2
6 files changed, 12 insertions, 0 deletions
diff --git a/config/initializers/00-core_plugins.rb b/config/initializers/00-core_plugins.rb
index 95c7f3f5d..a4387344d 100644
--- a/config/initializers/00-core_plugins.rb
+++ b/config/initializers/00-core_plugins.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Loads the core plugins located in lib/plugins
Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory|
if File.directory?(directory)
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 8d73eba2c..a01d38de6 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require 'active_record'
module ActiveRecord
diff --git a/config/initializers/20-mime_types.rb b/config/initializers/20-mime_types.rb
index 092e3992d..f5a1c3783 100644
--- a/config/initializers/20-mime_types.rb
+++ b/config/initializers/20-mime_types.rb
@@ -1 +1,3 @@
+# frozen_string_literal: false
+
# Add new mime types for use in respond_to blocks:
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb
index bebed4aca..1b8ee83f1 100644
--- a/config/initializers/30-redmine.rb
+++ b/config/initializers/30-redmine.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
I18n.backend = Redmine::I18n::Backend.new
# Forces I18n to load available locales from the backend
I18n.config.available_locales = nil
diff --git a/config/initializers/backtrace_silencers.rb b/config/initializers/backtrace_silencers.rb
index 890eede19..cbb20dd7a 100644
--- a/config/initializers/backtrace_silencers.rb
+++ b/config/initializers/backtrace_silencers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb
index 9e8b0131f..4347c3a3d 100644
--- a/config/initializers/inflections.rb
+++ b/config/initializers/inflections.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format