rails/activemodel/lib/active_model/deprecator.rb
Jonathan Hefner 74794858c9 Add ActiveModel.deprecator
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`.
2022-11-01 17:39:39 -05:00

8 lines
143 B
Ruby

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