1 | require 'action_controller' |
||
2 | require 'action_mailer' |
||
3 | require 'active_support' |
||
4 | require 'phony' |
||
5 | |||
6 | begin |
||
7 | require 'twilio-ruby' |
||
8 | rescue LoadError |
||
0 ignored issues
–
show
Best Practice
introduced
by
![]() |
|||
9 | end |
||
10 | |||
11 | begin |
||
12 | require 'sidekiq' |
||
13 | rescue LoadError |
||
14 | require 'textris/delay/sidekiq/missing' |
||
15 | |||
16 | Textris::Delay::Sidekiq.include(Textris::Delay::Sidekiq::Missing) |
||
17 | else |
||
18 | require 'textris/delay/sidekiq' |
||
19 | require 'textris/delay/sidekiq/proxy' |
||
20 | require 'textris/delay/sidekiq/serializer' |
||
21 | require 'textris/delay/sidekiq/worker' |
||
22 | end |
||
23 | |||
24 | require 'textris/base' |
||
25 | require 'textris/message' |
||
26 | |||
27 | begin |
||
28 | require 'active_job' |
||
29 | rescue LoadError |
||
30 | require 'textris/delay/active_job/missing' |
||
31 | |||
32 | Textris::Message.include(Textris::Delay::ActiveJob::Missing) |
||
33 | else |
||
34 | require 'textris/delay/active_job' |
||
35 | require 'textris/delay/active_job/job' |
||
36 | |||
37 | Textris::Message.include(Textris::Delay::ActiveJob) |
||
38 | end |
||
39 | |||
40 | require 'textris/delivery' |
||
41 | require 'textris/delivery/base' |
||
42 | require 'textris/delivery/test' |
||
43 | require 'textris/delivery/mail' |
||
44 | require 'textris/delivery/log' |
||
45 | require 'textris/delivery/twilio' |
||
46 | require 'textris/delivery/nexmo' |
||
47 |