Skip to content

Commit 0eaa58e

Browse files
authored
Merge pull request rails#47507 from yahonda/diag_warning
Use squiggly heredoc to remove extra spaces after `DEPRECATION WARNING:`
2 parents 629a321 + 357b1cf commit 0eaa58e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/attribute_methods/serialization.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ module ClassMethods
182182
def serialize(attr_name, class_name_or_coder = nil, coder: nil, type: Object, yaml: {}, **options)
183183
unless class_name_or_coder.nil?
184184
if class_name_or_coder.respond_to?(:new)
185-
ActiveRecord.deprecator.warn(<<-MSG)
185+
ActiveRecord.deprecator.warn(<<~MSG)
186186
Passing the class as positional argument is deprecated and will be remove in Rails 7.2.
187187
188188
Please pass the class as a keyword argument:
@@ -191,7 +191,7 @@ def serialize(attr_name, class_name_or_coder = nil, coder: nil, type: Object, ya
191191
MSG
192192
type = class_name_or_coder
193193
else
194-
ActiveRecord.deprecator.warn(<<-MSG)
194+
ActiveRecord.deprecator.warn(<<~MSG)
195195
Passing the coder as positional argument is deprecated and will be remove in Rails 7.2.
196196
197197
Please pass the coder as a keyword argument:

0 commit comments

Comments
 (0)