Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yahor opened this issue Feb 17, 2024 · 0 comments
Assignees

Comments

@yahor
Copy link
Contributor

yahor commented Feb 17, 2024

  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 class:EripTransaction 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 class:EripTransaction 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 class:EripTransaction 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 class:EripTransaction at /Users/yahorzhuchkou/Projects/hackerspace.by/app/models/erip_transaction.rb:42)

@yahor yahor self-assigned this Feb 17, 2024
@yahor yahor changed the title Rails model serialize methods syntax upgrade Rails DEPRECATION WARNINGS: model serialize methods syntax upgrade and Rails.application.credentials Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant