International-Aerobatic-Club / iaccdb

IAC Aerobatic Contest Database
iaccdb.iac.org
1 stars 1 forks source link

Fix deprecation messages #226

Open djmolny opened 2 years ago

djmolny commented 2 years ago

Running the script to recompute the collegiate results (sudo -u www-data RAILS_ENV=production bin/bundle exec rails r cmd/recompute_regionals.rb 2021) yielded these warnings:

/var/lib/gems/2.7.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:35: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/var/lib/gems/2.7.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:109: warning: The called method `initialize' is defined here
/var/lib/gems/2.7.0/gems/activemodel-5.1.7/lib/active_model/type/integer.rb:11: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/var/lib/gems/2.7.0/gems/activemodel-5.1.7/lib/active_model/type/value.rb:6: warning: The called method `initialize' is defined here
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:167: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/column.rb:16: warning: The called method `initialize' is defined here
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/transactions.rb:210: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/database_statements.rb:228: warning: The called method `transaction' is defined here
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:126: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/connection_adapters/abstract/transaction.rb:47: warning: The called method `initialize' is defined here
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/statement_cache.rb:90: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/statement_cache.rb:90: warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/persistence.rb:554: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/var/lib/gems/2.7.0/gems/activerecord-5.1.7/lib/active_record/timestamp.rb:105: warning: The called method `_update_record' is defined here