config/initializers/vapid.rb
The X-Factor of Rails configuration
Use the Rails config.x
object to add organize custom configuration into namespaces.
config/initializers/vapid.rb
Rails.application.configure do
config.x.vapid.public_key = credentials.dig(:vapid, :public_key)
config.x.vapid.private_key = credentials.dig(:vapid, :private_key)
end