mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b3a2bb326c
This commit adds `ActionMailer.deprecator` and replaces all usages of `ActiveSupport::Deprecation.warn` in `actionmailer/lib` with `ActionMailer.deprecator`. Additionally, this commit adds `ActionMailer.deprecator` to `Rails.application.deprecators` so that it can be configured via settings such as `config.active_support.report_deprecations`.
7 lines
144 B
Ruby
7 lines
144 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActionMailer
|
|
def self.deprecator # :nodoc:
|
|
@deprecator ||= ActiveSupport::Deprecation.new
|
|
end
|
|
end
|