Method: Rails::Application#deprecators
- Defined in:
- railties/lib/rails/application.rb
#deprecators ⇒ Object
A managed collection of deprecators (ActiveSupport::Deprecation::Deprecators). The collection’s configuration methods affect all deprecators in the collection. Additionally, the collection’s silence
method silences all deprecators in the collection for the duration of a given block.
239 240 241 242 243 |
# File 'railties/lib/rails/application.rb', line 239 def deprecators @deprecators ||= ActiveSupport::Deprecation::Deprecators.new.tap do |deprecators| deprecators[:railties] = Rails.deprecator end end |