RubyMoney/money-rails

Migration Helper Deprecation Warning (Ruby 2.7.1)

Closed this issue ยท 7 comments

When using the migration helper, t.monetize :field, and you run db:migrate, it raises a deprecating warning.

/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/money-rails-1.13.3/lib/money-rails/active_record/migration_extensions/table_pg_rails4.rb:8: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

I'm running ruby 2.7.1 with rails 6.0.3.1

Im facing the same warning as well.

/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/money-rails-1.13.3/lib/money-rails/active_record/migration_extensions/table_pg_rails4.rb:8: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

This is caused by a change implemented at ruby 2.7/3.0

There is a big topic on rubyonrails.org which explains the cause and possible solutions about this. https://discuss.rubyonrails.org/t/new-2-7-3-0-keyword-argument-pain-point/74980

This requires dropping support for older rubies to address. Coordinating a 2.0.0 release that will include the fix

This requires dropping support for older rubies to address. Coordinating a 2.0.0 release that will include the fix

Which ones?

@ClaudioFloreani most likely <= 2.4. Any concerns? These have been EOL for some time now

None. Looking forward for 2.0.0

ruurd commented

@antstorm when is 2.0.0 coming then?