Skip to content

Commit

Permalink
Allow slack invite ID to be configured from ENV
Browse files Browse the repository at this point in the history
So that when the link runs out of uses, it can be replaced with another
ID without a code deployment.
  • Loading branch information
mathewdbutton committed Nov 1, 2024
1 parent 15d9b4c commit 86802e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/my/slack_invites_controller.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 86802e5

Please sign in to comment.