check ::Rails::VERSION instead of ::ActionView

In some cases, `ActionView` is not specific enough. How about we check `Rails::VERSION` instead?

I tracked this error down to the `ActionView` namespace being defined in actionpack:

https://travis-ci.org/mperham/sidekiq/jobs/6200824#L93