提交 12c2f443 编写于 作者: R Ryuta Kamizono

Remove redundant `squish` for single line message

上级 5d0efb01
......@@ -78,7 +78,7 @@ def marshal_dump
def marshal_load(values)
if values.is_a?(Hash)
ActiveSupport::Deprecation.warn(<<~MSG.squish)
ActiveSupport::Deprecation.warn(<<~MSG)
Marshalling load from legacy attributes format is deprecated and will be removed in Rails 6.2.
MSG
empty_hash = {}.freeze
......
......@@ -21,7 +21,7 @@ def type_cast(value, column = nil)
value = id_value_for_database(value) if value.is_a?(Base)
if column
ActiveSupport::Deprecation.warn(<<~MSG.squish)
ActiveSupport::Deprecation.warn(<<~MSG)
Passing a column to `type_cast` is deprecated and will be removed in Rails 6.2.
MSG
type = lookup_cast_type_from_column(column)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册