rails/activestorage/lib/active_storage/deprecator.rb
Jonathan Hefner 07cd0322bd Add ActiveStorage.deprecator
This commit adds `ActiveStorage.deprecator` and replaces all usages of
`ActiveSupport::Deprecation.warn` in `activestorage/lib` and
`activestorage/app` with `ActiveStorage.deprecator`.

Additionally, this commit adds `ActiveStorage.deprecator` to
`Rails.application.deprecators` so that it can be configured via
settings such as `config.active_support.report_deprecations`.
2022-10-31 17:04:48 -05:00

8 lines
145 B
Ruby

# frozen_string_literal: true
module ActiveStorage
def self.deprecator # :nodoc:
@deprecator ||= ActiveSupport::Deprecation.new
end
end