From 12c2f44316848ac88f6b2b49edff96a83acf190c Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 6 May 2020 15:08:06 +0900 Subject: [PATCH] Remove redundant `squish` for single line message --- activemodel/lib/active_model/attribute_set/builder.rb | 2 +- .../lib/active_record/connection_adapters/abstract/quoting.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activemodel/lib/active_model/attribute_set/builder.rb b/activemodel/lib/active_model/attribute_set/builder.rb index 755662cf50..eb92be692d 100644 --- a/activemodel/lib/active_model/attribute_set/builder.rb +++ b/activemodel/lib/active_model/attribute_set/builder.rb @@ -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 diff --git a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb index ebdbe43866..f1372c8503 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb @@ -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)