gitlab-ce/lib
Sean McGivern 5883ce95ef `current_application_settings` belongs on `Gitlab::CurrentSettings`
The initializers including this were doing so at the top level, so every object
loaded after them had a `current_application_settings` method. However, if
someone had rack-attack enabled (which was loaded before these initializers), it
would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't
have that method.

To fix this:

1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need
   `Object.new.current_application_settings` to work.
2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it
   like that in several places.
3. Change the initializers to use that new form.
2017-08-31 13:38:33 +01:00
..
api `current_application_settings` belongs on `Gitlab::CurrentSettings` 2017-08-31 13:38:33 +01:00
assets
backup Refactor project and storage types 2017-08-22 06:33:20 +02:00
banzai Merge branch 'rs-more-public-send-whitelists' into 'master' 2017-08-16 11:25:26 +00:00
bitbucket Whitelist or fix additional `Gitlab/PublicSend` cop violations 2017-08-14 12:14:11 -04:00
ci Remove CI API v1 2017-08-18 11:47:03 +02:00
constraints Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
container_registry
declarative_policy Merge branch 'rs-more-public-send-whitelists' into 'master' 2017-08-16 11:25:26 +00:00
generators/rails/post_deployment_migration
github Fix error when importing a GitHub-wiki repository 2017-08-23 13:36:38 +02:00
gitlab `current_application_settings` belongs on `Gitlab::CurrentSettings` 2017-08-31 13:38:33 +01:00
haml_lint Restrict InlineJavaScript for haml_lint to dev and test environment 2017-08-08 10:36:21 +02:00
json_web_token
mattermost Fix Mattermost integration 2017-08-04 12:22:10 +03:00
microsoft_teams
omni_auth/strategies Refactor CSRF protection 2017-07-26 11:05:44 +02:00
peek/rblineprof
rouge
rspec_flaky Use a new RspecFlakyListener to detect flaky specs 2017-08-11 14:55:10 +02:00
support Filter sensitive query string parameters from NGINX access logs 2017-08-10 12:28:04 +01:00
system_check replace `is_multi_check?` with `multi_check?` 2017-08-29 11:14:42 +03:00
tasks `current_application_settings` belongs on `Gitlab::CurrentSettings` 2017-08-31 13:38:33 +01:00
additional_email_headers_interceptor.rb
after_commit_queue.rb Update rubocop-gitlab-security to 0.1.0 2017-08-28 12:46:00 -04:00
banzai.rb
declarative_policy.rb declarative_policy rubocop fix 2017-08-03 09:07:18 -07:00
disable_email_interceptor.rb
email_template_interceptor.rb `current_application_settings` belongs on `Gitlab::CurrentSettings` 2017-08-31 13:38:33 +01:00
event_filter.rb
expand_variables.rb
extracts_path.rb
feature.rb
file_size_validator.rb Whitelist or fix additional `Gitlab/PublicSend` cop violations 2017-08-14 12:14:11 -04:00
gitlab.rb
gt_one_coercion.rb
repository_cache.rb
static_model.rb Re-enable SqlInjection and CommandInjection 2017-08-08 10:50:54 -04:00
system_check.rb
unfold_form.rb
uploaded_file.rb Whitelist or fix additional `Gitlab/PublicSend` cop violations 2017-08-14 12:14:11 -04:00
version_check.rb