Don't define Rails bits when the Rails module isn't defined.