Factor out requiring Rails into a common file.
That's RUBY_ENGINE, not RAILS_ENGINE. Duh.