Welcome to mirror list, hosted at ThFree Co, Russian Federation.

registrations_helper.rb « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79f0a66f995435e427b5d6a0413f02ec8b64cb31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module RegistrationsHelper
  def social_signin_enabled?
    ::Gitlab.dev_env_or_com? &&
      omniauth_enabled? &&
      devise_mapping.omniauthable? &&
      button_based_providers_enabled?
  end
end

RegistrationsHelper.prepend_mod_with('RegistrationsHelper')