From: Go MAEDA Date: Wed, 21 Sep 2022 06:58:10 +0000 (+0000) Subject: Add the `# frozen_string_literal: true` magic comment to config/initializers/secret_t... X-Git-Tag: 5.1.0~425 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40774c2cf4d3de9b3fb14f76513988de5d51fac2;p=redmine.git Add the `# frozen_string_literal: true` magic comment to config/initializers/secret_token.rb (#37682). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@21830 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/tasks/initializers.rake b/lib/tasks/initializers.rake index 6da60c147..564fbff9f 100644 --- a/lib/tasks/initializers.rake +++ b/lib/tasks/initializers.rake @@ -5,6 +5,8 @@ file 'config/initializers/secret_token.rb' do secret = SecureRandom.hex(40) File.open(path, 'w') do |f| f.write <<"EOF" +# frozen_string_literal: true + # This file was generated by 'rake generate_secret_token', and should # not be made visible to public. # If you have a load-balancing Redmine cluster, you will need to use the