Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GitLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
projects.thm.de
GitLab
Commits
10cce32e
Commit
10cce32e
authored
Jan 03, 2019
by
Daniel Gerhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore Ruby 2.3 compatibility
* Use match instead match?
parent
ec23ff18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
auth_helper.rb
app/helpers/auth_helper.rb
+1
-1
No files found.
app/helpers/auth_helper.rb
View file @
10cce32e
...
@@ -38,7 +38,7 @@ module AuthHelper
...
@@ -38,7 +38,7 @@ module AuthHelper
def
form_based_provider_with_highest_priority
def
form_based_provider_with_highest_priority
@form_based_provider_with_highest_priority
||=
begin
@form_based_provider_with_highest_priority
||=
begin
form_based_provider_priority
.
each
do
|
provider_regexp
|
form_based_provider_priority
.
each
do
|
provider_regexp
|
highest_priority
=
form_based_providers
.
find
{
|
provider
|
provider
.
match
?
(
provider_regexp
)
}
highest_priority
=
form_based_providers
.
find
{
|
provider
|
provider
.
match
(
provider_regexp
)
}
break
highest_priority
unless
highest_priority
.
nil?
break
highest_priority
unless
highest_priority
.
nil?
end
end
end
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