method

collect_deprecations

rails latest stable - Class: ActiveSupport::Deprecation::Assertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.2.1) is shown here.

collect_deprecations()
private

No documentation available.

# File activesupport/lib/active_support/deprecation.rb, line 135
        def collect_deprecations
          old_behavior = ActiveSupport::Deprecation.behavior
          deprecations = []
          ActiveSupport::Deprecation.behavior = Proc.new do |message, callstack|
            deprecations << message
          end
          result = yield
          [result, deprecations]
        ensure
          ActiveSupport::Deprecation.behavior = old_behavior
        end