Name |
Last commit
|
Last update |
---|---|---|
.. | ||
cache_spec.rb | ||
queues_spec.rb | ||
shared_state_spec.rb | ||
wrapper_spec.rb |
BigW Consortium Gitlab
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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
cache_spec.rb | Loading commit data... | |
queues_spec.rb | Loading commit data... | |
shared_state_spec.rb | Loading commit data... | |
wrapper_spec.rb | Loading commit data... |