How about using feature detection instead of checking the Rails version?

```ruby
if Arturo::Engine.respond_to?(:routes) && Arturo::Engine.routes.respond_to?(:draw)
```