07cd0322bd
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`.
8 lines
145 B
Ruby
8 lines
145 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActiveStorage
|
|
def self.deprecator # :nodoc:
|
|
@deprecator ||= ActiveSupport::Deprecation.new
|
|
end
|
|
end
|