diff --git a/app/models/mailer.rb b/app/models/mailer.rb index fa566a7a0..468e6c21a 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -681,15 +681,6 @@ class Mailer < ActionMailer::Base end end - def self.method_missing(method, *args, &block) - if m = method.to_s.match(%r{^deliver_(.+)$}) - ActiveSupport::Deprecation.warn "Mailer.deliver_#{m[1]}(*args) is deprecated. Use Mailer.#{m[1]}(*args).deliver instead." - send(m[1], *args).deliver - else - super - end - end - # Returns an array of email addresses to notify by # replacing users in arg with their notified email addresses #