reverts changes to Rails.version made in #8501
Merge pull request #10002 from charliesome/revert-version-method-on-rails

Reverts changes to Rails.version made in #8501