提交 bc619fb0 编写于 作者: M Matthew Draper 提交者: GitHub

Merge pull request #28017 from mtsmfm/suppress-dep-warn

Suppress deprecation warning `implementing to_yaml is deprecated`
......@@ -2,6 +2,8 @@ module ActiveRecord
module ConnectionAdapters
module MySQL
class TypeMetadata < DelegateClass(SqlTypeMetadata) # :nodoc:
undef to_yaml if method_defined?(:to_yaml)
attr_reader :extra
def initialize(type_metadata, extra: "")
......
module ActiveRecord
module ConnectionAdapters
class PostgreSQLTypeMetadata < DelegateClass(SqlTypeMetadata)
undef to_yaml if method_defined?(:to_yaml)
attr_reader :oid, :fmod, :array
def initialize(type_metadata, oid: nil, fmod: nil)
......
module ActiveRecord
module Type
class Serialized < DelegateClass(ActiveModel::Type::Value) # :nodoc:
undef to_yaml if method_defined?(:to_yaml)
include ActiveModel::Type::Helpers::Mutable
attr_reader :subtype, :coder
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册