From 1db68f988bb8258e84e5c8395c683ea944cfe2c9 Mon Sep 17 00:00:00 2001 From: Zane Wolfgang Pickett Date: Wed, 1 May 2024 21:20:05 +0200 Subject: [PATCH] Apply feedback from PR --- lib/money-rails/configuration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/money-rails/configuration.rb b/lib/money-rails/configuration.rb index 347ae4fc8..34fa5bb5e 100644 --- a/lib/money-rails/configuration.rb +++ b/lib/money-rails/configuration.rb @@ -35,7 +35,7 @@ def register_currency=(currency_options) end def set_currency_column_for_default_currency! - iso_code = default_currency&.iso_code + iso_code = default_currency && default_currency.iso_code currency_column.merge! default: iso_code end