BigW Consortium Gitlab
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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
mentionable | Loading commit data... | |
storage | Loading commit data... | |
access_requestable.rb | Loading commit data... | |
avatarable.rb | Loading commit data... | |
awardable.rb | Loading commit data... | |
blob_like.rb | Loading commit data... | |
cache_markdown_field.rb | Loading commit data... | |
case_sensitivity.rb | Loading commit data... | |
created_at_filterable.rb | Loading commit data... | |
discussion_on_diff.rb | Loading commit data... | |
each_batch.rb | Loading commit data... | |
editable.rb | Loading commit data... | |
expirable.rb | Loading commit data... | |
faster_cache_keys.rb | Loading commit data... | |
feature_gate.rb | Loading commit data... | |
ghost_user.rb | Loading commit data... | |
has_status.rb | Loading commit data... | |
has_variable.rb | Loading commit data... | |
ignorable_column.rb | Loading commit data... | |
importable.rb | Loading commit data... | |
internal_id.rb | Loading commit data... | |
issuable.rb | Loading commit data... | |
mentionable.rb | Loading commit data... | |
milestoneish.rb | Loading commit data... | |
note_on_diff.rb | Loading commit data... | |
noteable.rb | Loading commit data... | |
participable.rb | Loading commit data... | |
presentable.rb | Loading commit data... | |
project_features_compatibility.rb | Loading commit data... | |
protected_branch_access.rb | Loading commit data... | |
protected_ref.rb | Loading commit data... | |
protected_ref_access.rb | Loading commit data... | |
protected_tag_access.rb | Loading commit data... | |
reactive_caching.rb | Loading commit data... | |
reactive_service.rb | Loading commit data... | |
referable.rb | Loading commit data... | |
relative_positioning.rb | Loading commit data... | |
repository_mirroring.rb | Loading commit data... | |
resolvable_discussion.rb | Loading commit data... | |
resolvable_note.rb | Loading commit data... | |
routable.rb | Loading commit data... | |
select_for_project_authorization.rb | Loading commit data... | |
sha_attribute.rb | Loading commit data... | |
sortable.rb | Loading commit data... | |
spammable.rb | Loading commit data... | |
strip_attribute.rb | Loading commit data... | |
subscribable.rb | Loading commit data... | |
taskable.rb | Loading commit data... | |
time_trackable.rb | Loading commit data... | |
token_authenticatable.rb | Loading commit data... | |
uniquify.rb | Loading commit data... | |
valid_attribute.rb | Loading commit data... |