mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 15:28:52 -05:00
Add monkey patch for eventmachine 1.0.4
This commit is contained in:
parent
d3336535ae
commit
757eafe337
@ -6,6 +6,16 @@ require "active_support/all"
|
|||||||
require "eventmachine"
|
require "eventmachine"
|
||||||
require "thin"
|
require "thin"
|
||||||
|
|
||||||
|
if EventMachine::VERSION == "1.0.4"
|
||||||
|
module EventMachine
|
||||||
|
# Monkey patch fix for 10deb4
|
||||||
|
# See https://github.com/eventmachine/eventmachine/issues/569
|
||||||
|
def self.reactor_running?
|
||||||
|
(@reactor_running || false)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
require "mail_catcher/events"
|
require "mail_catcher/events"
|
||||||
require "mail_catcher/mail"
|
require "mail_catcher/mail"
|
||||||
require "mail_catcher/smtp"
|
require "mail_catcher/smtp"
|
||||||
|
Loading…
Reference in New Issue
Block a user