lib/route_dog/railtie.rb in route_dog-2.4.2 vs lib/route_dog/railtie.rb in route_dog-2.5.0
- old
+ new
@@ -20,10 +20,10 @@
app.config.middleware.use RouteDog::Middleware::Notifier
end
end
def route_dog_configuration
- YAML.load_file(File.join(Rails.root, 'config', 'middlewares_route_dog.yml'))
+ YAML.load_file(RouteDog.config_file)
rescue Errno::ENOENT
{"watcher" => {"env" => ["test"]}, "notifier" => {"env" => ["development"]}}
end
end
end