Follow up 697661cbf2
- Missing gem loadings for Twilio SMS channel driver causes application to break.
This commit is contained in:
parent
ce5fa9def9
commit
2770f0a370
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,7 @@ class Channel::Driver::Sms::Twilio
|
||||||
|
|
||||||
# prevent already created articles
|
# prevent already created articles
|
||||||
if Ticket::Article.exists?(message_id: attr[:SmsMessageSid])
|
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]
|
return ['application/xml; charset=UTF-8;', Twilio::TwiML::MessagingResponse.new.to_s]
|
||||||
end
|
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]
|
['application/xml; charset=UTF-8;', Twilio::TwiML::MessagingResponse.new.to_s]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue