Rails.application.config.to_prepare do Deforest.initialize! do |config| config.write_logs_to_db_every = 1.minute config.current_admin_method_name = :current_admin config.most_used_percentile_threshold = 80 config.least_used_percentile_threshold = 20 config.track_dirs = ["/app/models", "/app/controllers", "/app/helpers"] config.render_source_on_browser = true end end