提交 2db8571e 编写于 作者: J Jeremy Kemper

Don't hide deeper LoadErrors

上级 e9aa975c
......@@ -9,9 +9,10 @@
unless defined?(ActionMailer)
begin
$:.unshift(File.dirname(__FILE__) + "/../../../actionmailer/lib")
$:.unshift("#{File.dirname(__FILE__)}/../../../actionmailer/lib")
require 'action_mailer'
rescue LoadError
rescue LoadError => e
raise unless e.message =~ /action_mailer/
require 'rubygems'
gem 'actionmailer'
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册