only check for deprecated rails if Rails is defined
no longer have to check for Rails here