From 70f4c6b32ab61b980f58904134a48bfa179c79c6 Mon Sep 17 00:00:00 2001 From: James Date: Wed, 1 Nov 2023 12:51:33 +1100 Subject: [PATCH] Passing in `coder` as a named argument instead of a positional argument. This will no longer be supporter in Rails 7.2 and currently throws a deprecation warning in Rails 7.1. --- lib/double_entry/line_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/double_entry/line_metadata.rb b/lib/double_entry/line_metadata.rb index 351f19a0..c3746d86 100644 --- a/lib/double_entry/line_metadata.rb +++ b/lib/double_entry/line_metadata.rb @@ -13,6 +13,6 @@ def self.dump(symbol) end belongs_to :line - serialize :key, SymbolWrapper + serialize :key, coder: DoubleEntry::LineMetadata::SymbolWrapper end end