From 86802e54db7d4bd0fb0e87701388097ffba3ddbb Mon Sep 17 00:00:00 2001 From: Mathew Button Date: Fri, 1 Nov 2024 21:52:40 +1300 Subject: [PATCH] Allow slack invite ID to be configured from ENV So that when the link runs out of uses, it can be replaced with another ID without a code deployment. --- app/controllers/my/slack_invites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my/slack_invites_controller.rb b/app/controllers/my/slack_invites_controller.rb index e517802..2271c71 100644 --- a/app/controllers/my/slack_invites_controller.rb +++ b/app/controllers/my/slack_invites_controller.rb @@ -1,7 +1,7 @@ module My class SlackInvitesController < My::ApplicationController def show - redirect_to "https://join.slack.com/t/rubyau/shared_invite/zt-1pewt4vi8-TtrM~UoIJmuH9Niy0Ela6w", allow_other_host: true + redirect_to "https://join.slack.com/t/rubyau/shared_invite/#{ENV['SLACK_INVITE_ID']}", allow_other_host: true end end end