##// END OF EJS Templates
Adds a deprecation warning to Mailer.deliver_*....
Jean-Philippe Lang -
r9456:6fc909a40267
parent child
Show More
@@ -422,6 +422,7 class Mailer < ActionMailer::Base
422
422
423 def self.method_missing(method, *args, &block)
423 def self.method_missing(method, *args, &block)
424 if m = method.to_s.match(%r{^deliver_(.+)$})
424 if m = method.to_s.match(%r{^deliver_(.+)$})
425 ActiveSupport::Deprecation.warn "Mailer.deliver_#{m[1]}(*args) is deprecated. Use Mailer.#{m[1]}(*args).deliver instead."
425 send(m[1], *args).deliver
426 send(m[1], *args).deliver
426 else
427 else
427 super
428 super
General Comments 0
You need to be logged in to leave comments. Login now