Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
d5ca55f9fe30
Commit
d5ca55f9
authored
Nov 11, 2016
by
Stan Hu
Browse files
Fix refresh to lazily load connection
parent
3133bf050549
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bitbucket/connection.rb
View file @
d5ca55f9
...
...
@@ -45,8 +45,7 @@
@expires_at
=
response
.
expires_at
@expires_in
=
response
.
expires_in
@refresh_token
=
response
.
refresh_token
@connection
=
OAuth2
::
AccessToken
.
new
(
@client
,
@token
,
refresh_token:
@refresh_token
,
expires_at:
@expires_at
,
expires_in:
@expires_in
)
@connection
=
nil
end
private
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment