coverband
coverband copied to clipboard
Question: placing the configuration file for coverband under the `initializers` directory
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