Transaction Note Can Be Null

Christopher Vollick created

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.

Change summary

lib/customer_finacials.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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