mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Removes method_missing override (#26791).
git-svn-id: http://svn.redmine.org/redmine/trunk@17591 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
21e11bd9cd
commit
e589937aa7
@ -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
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user