Skip to content

Commit

Permalink
Set secret_key_base on config in bug_report_templates
Browse files Browse the repository at this point in the history
`secrets` are deprecated. For the bug templates we can set the
`secret_key_base` on `config` instead.
  • Loading branch information
p8 committed Jun 18, 2023
1 parent 811b103 commit 275a613
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion guides/bug_report_templates/action_controller_gem.rb
Expand Up @@ -18,7 +18,7 @@ class TestApp < Rails::Application
config.root = __dir__
config.hosts << "example.org"
config.session_store :cookie_store, key: "cookie_store_key"
secrets.secret_key_base = "secret_key_base"
config.secret_key_base = "secret_key_base"

config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down
2 changes: 1 addition & 1 deletion guides/bug_report_templates/action_controller_main.rb
Expand Up @@ -16,7 +16,7 @@
class TestApp < Rails::Application
config.root = __dir__
config.hosts << "example.org"
secrets.secret_key_base = "secret_key_base"
config.secret_key_base = "secret_key_base"

config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down
2 changes: 1 addition & 1 deletion guides/bug_report_templates/action_mailbox_gem.rb
Expand Up @@ -22,7 +22,7 @@ class TestApp < Rails::Application
config.hosts << "example.org"
config.eager_load = false
config.session_store :cookie_store, key: "cookie_store_key"
secrets.secret_key_base = "secret_key_base"
config.secret_key_base = "secret_key_base"

config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down
2 changes: 1 addition & 1 deletion guides/bug_report_templates/action_mailbox_main.rb
Expand Up @@ -22,7 +22,7 @@ class TestApp < Rails::Application
config.hosts << "example.org"
config.eager_load = false
config.session_store :cookie_store, key: "cookie_store_key"
secrets.secret_key_base = "secret_key_base"
config.secret_key_base = "secret_key_base"

config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down
2 changes: 1 addition & 1 deletion guides/bug_report_templates/active_storage_gem.rb
Expand Up @@ -21,7 +21,7 @@ class TestApp < Rails::Application
config.hosts << "example.org"
config.eager_load = false
config.session_store :cookie_store, key: "cookie_store_key"
secrets.secret_key_base = "secret_key_base"
config.secret_key_base = "secret_key_base"

config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down
2 changes: 1 addition & 1 deletion guides/bug_report_templates/active_storage_main.rb
Expand Up @@ -21,7 +21,7 @@ class TestApp < Rails::Application
config.hosts << "example.org"
config.eager_load = false
config.session_store :cookie_store, key: "cookie_store_key"
secrets.secret_key_base = "secret_key_base"
config.secret_key_base = "secret_key_base"

config.logger = Logger.new($stdout)
Rails.logger = config.logger
Expand Down

0 comments on commit 275a613

Please sign in to comment.