coverband icon indicating copy to clipboard operation
coverband copied to clipboard

Question: placing the configuration file for coverband under the `initializers` directory

Open meinac opened this issue 8 months ago • 0 comments

I'm currently requiring the coverband gem conditionally based on an environment variable and configuring it in an initializer file and I want to make sure this does not break any functionality of the gem. I'm asking because in the Readme, it's explicitly mentioned that the configuration file must be placed at config/coverband.rb and NOT in the initializers but there is no explanation about why, could you please guide me if I can place it under the initializers directory.

This is my gem file;

gem 'coverband', require: false

and the initializer file;

# initializers/coverband.rb

return unless ENV['ENABLE_COVERBAND']

require 'coverband'

Coverband.configure do |config|
  ...
end

meinac avatar Jun 04 '24 13:06 meinac