instance method deprecation_for_delegation

Ruby on Rails 7.1.6

Since v7.1.6 Last seen in v7.1.6 Private

Signature

deprecation_for_delegation(method)

No documentation comment.

Parameters

method req
Source
# File activerecord/lib/active_record/connection_handling.rb, line 340
      def deprecation_for_delegation(method)
        ActiveRecord.deprecator.warn(<<-MSG.squish)
          Calling `ActiveRecord::Base.#{method} is deprecated. Please
          call the method directly on the connection handler; for
          example: `ActiveRecord::Base.connection_handler.#{method}`.
        MSG
      end

Defined in activerecord/lib/active_record/connection_handling.rb line 340 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionHandling

Type at least 2 characters to search.

↑↓ navigate · open · esc close