Skip to content

Commit 0129d71

Browse files
Fix deprecation warning
DEPRECATION WARNING: Passing the class as positional argument is deprecated and will be removed in Rails 7.2. Please pass the class as a keyword argument: serialize :approvals, type: Array (called from <class:User> at ~/mi_carrera/app/models/user.rb:6)
1 parent 7e7d803 commit 0129d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class User < ApplicationRecord
33
:recoverable, :rememberable, :validatable,
44
:omniauthable, omniauth_providers: [:google_oauth2]
55

6-
serialize :approvals, Array
6+
serialize :approvals, type: Array
77

88
def self.from_omniauth(auth, cookie)
99
# check that user with same email exists

0 commit comments

Comments
 (0)