lib/mail/configuration.rb in mail-2.0.5 vs lib/mail/configuration.rb in mail-2.1.0

- old
+ new

@@ -11,12 +11,15 @@ # # Each new mail object gets a copy of these values at initialization # which can be overwritten on a per mail object basis. class Configuration include Singleton - - @delivery_method = nil - @retriever_method = nil + + def initialize + @delivery_method = nil + @retriever_method = nil + super + end def delivery_method(method = nil, settings = {}) return @delivery_method if @delivery_method && method.nil? @delivery_method = lookup_delivery_method(method).new(settings) end \ No newline at end of file