Commit 10cce32e authored by Daniel Gerhardt's avatar Daniel Gerhardt

Restore Ruby 2.3 compatibility

* Use match instead match?
parent ec23ff18
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment