Created
June 30, 2022 03:40
-
-
Save mgomes/e4f8d5d2f95e6f7192b23af79a5d07a4 to your computer and use it in GitHub Desktop.
Support for multiple phone numbers in Stealth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BotController < Stealth::Controller | |
before_action :set_outbound_phone | |
private def set_outbound_phone | |
if current_message.service == "twilio" | |
Stealth.config.twilio.from_phone = current_message.target_id | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment