74794858c9
This commit adds `ActiveModel.deprecator`, and adds it to `Rails.application.deprecators` so that it can be configured via settings such as `config.active_support.report_deprecations`.
8 lines
143 B
Ruby
8 lines
143 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ActiveModel
|
|
def self.deprecator # :nodoc:
|
|
@deprecator ||= ActiveSupport::Deprecation.new
|
|
end
|
|
end
|