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 681c4d4 commit f14d0a6Copy full SHA for f14d0a6
lib/workos/directory_user.rb
@@ -52,6 +52,12 @@ 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
@@ -81,13 +87,5 @@ def authorization_attributes
81
87
roles: roles,
82
88
}
83
89
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