lib/courier.rb in courier-0.1.5 vs lib/courier.rb in courier-0.2.0

- old
+ new

@@ -21,14 +21,16 @@ config.services.each do |service| service.deliver_all! end end - def template(name) - config.get_template(name) + def template(key) + return key if key.is_a?(Courier::Template::Base) + config.get_template(key) end def service(name) + return name if name.is_a?(Courier::Service::Base) config.get_service(name) end end end