Use Rails::VERSION::MAJOR instead of Rails.version