1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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) def marshal_load(values)
if values.is_a?(Hash) 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. Marshalling load from legacy attributes format is deprecated and will be removed in Rails 6.2.
MSG MSG
empty_hash = {}.freeze empty_hash = {}.freeze

View file

@ -21,7 +21,7 @@ module ActiveRecord
value = id_value_for_database(value) if value.is_a?(Base) value = id_value_for_database(value) if value.is_a?(Base)
if column 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. Passing a column to `type_cast` is deprecated and will be removed in Rails 6.2.
MSG MSG
type = lookup_cast_type_from_column(column) type = lookup_cast_type_from_column(column)