minsk-hackerspace / hackerspace.by

Website of Minsk Hackerspace (Ruby on Rails)
https://hackerspace.by/
11 stars 20 forks source link

Rails DEPRECATION WARNINGS: model serialize methods syntax upgrade and Rails.application.credentials #617

Open yahor opened 4 months ago

yahor commented 4 months ago

1) .DEPRECATION WARNING: Rails.application.secrets is deprecated in favor of Rails.application.credentials and will be removed in Rails 7.2. (called from authenticate_token! at /Users/yahorzhuchkou/Projects/hackerspace.by/app/controllers/bramnik_controller.rb:56)

2) https://edgeapi.rubyonrails.org/classes/ActiveRecord/AttributeMethods/Serialization/ClassMethods.html

Please pass the coder as a keyword argument: serialize :billing_address, coder: JSON (called from at /Users/yahorzhuchkou/Projects/hackerspace.by/app/models/erip_transaction.rb:39) DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

serialize :customer, coder: JSON (called from at /Users/yahorzhuchkou/Projects/hackerspace.by/app/models/erip_transaction.rb:40) DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

serialize :payment, coder: JSON (called from at /Users/yahorzhuchkou/Projects/hackerspace.by/app/models/erip_transaction.rb:41) DEPRECATION WARNING: Passing the coder as positional argument is deprecated and will be removed in Rails 7.2.

Please pass the coder as a keyword argument:

serialize :erip, coder: JSON (called from at /Users/yahorzhuchkou/Projects/hackerspace.by/app/models/erip_transaction.rb:42)