Commit ab7f9c9a authored by Andrei Gliga's avatar Andrei Gliga

Array(enabled_oauth_sign_in_sources) instead of the if

parent 9bfa74fc
......@@ -57,7 +57,7 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
params[:application_setting][:disabled_oauth_sign_in_sources] =
AuthHelper.button_based_providers.map(&:to_s) -
(enabled_oauth_sign_in_sources.nil? ? [] : enabled_oauth_sign_in_sources)
Array(enabled_oauth_sign_in_sources)
params[:application_setting].delete(:enabled_oauth_sign_in_sources)
......
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