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
6bd9c7412541
Commit
489d241c
authored
Nov 11, 2016
by
Stan Hu
Browse files
Incorporate review comments
parent
e68504ebe787
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/bitbucket/page.rb
View file @
6bd9c741
...
...
@@ -29,8 +29,7 @@ def parse_values(raw, representation_class)
end
def
representation_class
(
type
)
class_name
=
"Bitbucket::Representation::
#{
type
.
to_s
.
camelize
}
"
class_name
.
constantize
class_name
=
Bitbucket
::
Representation
.
const_get
(
type
.
to_s
.
camelize
)
end
end
end
lib/omniauth/strategies/bitbucket.rb
View file @
6bd9c741
...
...
@@ -32,7 +32,7 @@ def raw_info
end
def
primary_email
primary
=
emails
.
find
{
|
i
|
i
[
'is_primary'
]
&&
i
[
'is_confirmed'
]
}
primary
=
emails
.
find
{
|
i
|
i
[
'is_primary'
]
&&
i
[
'is_confirmed'
]
}
primary
&&
primary
[
'email'
]
||
nil
end
...
...
Write
Preview
Markdown
is supported
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