Module: Gitlab::Recaptcha

Defined in:
lib/gitlab/recaptcha.rb

Class Method Summary collapse

Class Method Details

.load_configurations!Object


3
4
5
6
7
8
9
10
11
12
# File 'lib/gitlab/recaptcha.rb', line 3

def self.load_configurations!
  if current_application_settings.recaptcha_enabled
    ::Recaptcha.configure do |config|
      config.public_key  = current_application_settings.recaptcha_site_key
      config.private_key = current_application_settings.recaptcha_private_key
    end

    true
  end
end