lynndylanhurley / devise_token_auth

Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Do What The F*ck You Want To Public License
3.52k stars 1.14k forks source link

Support for writing style deprecated in 7.1 and removed in 7.2 #1606

Closed hatsu38 closed 8 months ago

hatsu38 commented 9 months ago

This writing style will be deprecated in 7.1 and will not be available in 7.2.

serialize :tokens, DeviseTokenAuth::Concerns::TokensSerialization

FYI: https://github.com/rails/rails/blob/bd4996bdfddb3d9c74ec5e91674f9b0c6e1693dc/activerecord/lib/active_record/attribute_methods/serialization.rb#L186C1-L193C42

               ActiveRecord.deprecator.warn(<<~MSG)
                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 #{attr_name.inspect}, coder: #{class_name_or_coder}
              MSG
              coder = class_name_or_coder

These are the results of local testing.

スクリーンショット 2023-09-13 19 02 08