Fixed warning `possible reference to past scope` from railties

- Changed `paths` to `routing_paths` to avoid warning `possible reference to past scope`