Skip to content

Commit e1bb7c5

Browse files
committed
mail_domain method was yielding username, not domain
1 parent cf548d9 commit e1bb7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/gmail/client/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def fill_username(username)
190190
end
191191

192192
def mail_domain
193-
username.split('@')[0]
193+
username.split('@').last
194194
end
195195

196196
private

0 commit comments

Comments
 (0)