lib/verdict/railtie.rb in verdict-0.10.0 vs lib/verdict/railtie.rb in verdict-0.11.0
- old
+ new
@@ -1,6 +1,8 @@
class Verdict::Railtie < Rails::Railtie
initializer "experiments.configure_rails_initialization" do |app|
+ app.config.eager_load_namespaces << Verdict
+
Verdict.default_logger = Rails.logger
Verdict.directory ||= Rails.root.join('app', 'experiments')
app.config.eager_load_paths -= Dir[Verdict.directory.to_s]