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