Skip to content

Commit

Permalink
Add application implementation of Rails secrets because of deprecation (
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon authored Nov 18, 2024
1 parent ce073d2 commit 6cf3710
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
module Open311status
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.load_defaults 7.1

config.active_job.queue_adapter = :good_job

config.secrets = config_for(:secrets)
config.secret_key_base = config.secrets[:secret_key_base]
def secrets
config.secrets
end

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
Expand Down

0 comments on commit 6cf3710

Please sign in to comment.