We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14d0a6 commit a5ea9f1Copy full SHA for a5ea9f1
lib/workos/directory_user.rb
@@ -52,12 +52,6 @@ def to_json(*)
52
merge(authorization_attributes)
53
end
54
55
- # @deprecated Will be removed in a future major version. Use {#email} instead.
56
- def primary_email
57
- primary_email = (emails || []).find { |email| email[:primary] }
58
- return primary_email[:value] if primary_email
59
- end
60
-
61
private
62
63
def base_attributes
@@ -87,5 +81,13 @@ def authorization_attributes
87
81
roles: roles,
88
82
}
89
83
84
+
85
+ public
86
+ # @deprecated Will be removed in a future major version. Use {#email} instead.
+ def primary_email
+ primary_email = (emails || []).find { |email| email[:primary] }
90
+ return primary_email[:value] if primary_email
91
+ end
92
93
0 commit comments