From 2770f0a37023693d9e3262e4cdaf353afe4e9bd5 Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Mon, 12 Jul 2021 08:09:02 +0000 Subject: [PATCH] Follow up 697661cbf2483a99c9d3e7e507586f2bb1bb8a56 - Missing gem loadings for Twilio SMS channel driver causes application to break. --- app/models/channel/driver/sms/twilio.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/channel/driver/sms/twilio.rb b/app/models/channel/driver/sms/twilio.rb index 1c482b843..144fbe4b8 100644 --- a/app/models/channel/driver/sms/twilio.rb +++ b/app/models/channel/driver/sms/twilio.rb @@ -36,6 +36,7 @@ class Channel::Driver::Sms::Twilio # prevent already created articles if Ticket::Article.exists?(message_id: attr[:SmsMessageSid]) + require 'twilio-ruby' # Only load this gem when it is really used return ['application/xml; charset=UTF-8;', Twilio::TwiML::MessagingResponse.new.to_s] end @@ -117,6 +118,7 @@ class Channel::Driver::Sms::Twilio } ) + require 'twilio-ruby' # Only load this gem when it is really used ['application/xml; charset=UTF-8;', Twilio::TwiML::MessagingResponse.new.to_s] end