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