method

[]

rails latest stable - Class: ActiveRecord::InternalMetadata

Method deprecated or moved

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

[](key)
public

No documentation available.

# File activerecord/lib/active_record/internal_metadata.rb, line 34
      def [](key)
        return unless enabled?

        where(key: key).pick(:value)
      end