f5cb3ac14d
The `Rails` object was not always available in all tasks that require Redis access, such as `mail_room`, so the constant pointing to the configuration path was never defined, but we still attempted to access it in `config_file_name`, resulting in a `NameError` exception. Further, there was no benefit to defining these paths in a constant to begin with -- they're only accessed in one place, and it was within the class where they were being defined. We can just provide them at run-time instead. Further _still_, we were calling `File.expand_path` on the absolute path returned by `Rails.root.join`, which was rather pointless. |
||
---|---|---|
.. | ||
api/helpers | ||
banzai | ||
bitbucket | ||
ci | ||
constraints | ||
container_registry | ||
gitlab | ||
json_web_token | ||
mattermost | ||
microsoft_teams | ||
rspec_flaky | ||
system_check | ||
additional_email_headers_interceptor_spec.rb | ||
disable_email_interceptor_spec.rb | ||
event_filter_spec.rb | ||
expand_variables_spec.rb | ||
extracts_path_spec.rb | ||
feature_spec.rb | ||
file_size_validator_spec.rb | ||
gitlab_spec.rb | ||
repository_cache_spec.rb | ||
system_check_spec.rb |