lib/letter_opener/web/railtie.rb in letter_opener-web-0.1.2 vs lib/letter_opener/web/railtie.rb in letter_opener-web-0.2.0
- old
+ new
@@ -4,8 +4,8 @@
initializer "letter_opener.add_delivery_method" do
ActiveSupport.on_load :action_mailer do
ActionMailer::Base.add_delivery_method :letter_opener, LetterOpener::DeliveryMethod, :location => Rails.root.join("tmp", "letter_opener")
end
end
- end
+ end if defined?(::Rails)
end
end