From c95d2db47a5bfcf44c27dbf214cf64e621d2c0e0 Mon Sep 17 00:00:00 2001 From: Christopher Vollick <0@psycoti.ca> Date: Sat, 19 Mar 2022 09:14:47 -0400 Subject: [PATCH] Transaction Note Can Be Null Not only is it allowed, but actually there's a ton of empty notes. Every monthly account activation is missing a note, so practically every user that has transactions will have empty notes. --- lib/customer_finacials.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/customer_finacials.rb b/lib/customer_finacials.rb index a39dfa6..fd1ad66 100644 --- a/lib/customer_finacials.rb +++ b/lib/customer_finacials.rb @@ -45,7 +45,7 @@ class CustomerFinancials transaction_id String created_at Time amount BigDecimal - note String + note String, coerce: ->(x) { x || "" } end def formatted_amount -- 2.34.5