Remove redundant `squish` for single line message

This commit is contained in:
Ryuta Kamizono 2020-05-06 15:08:06 +09:00
parent 5d0efb0102
commit 12c2f44316
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ module ActiveModel
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

View File

@ -21,7 +21,7 @@ module ActiveRecord
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)