Add to_s to Rails.version

Due to rails/rails#8150.

Change-Id: Id81d89bf60ad6dc47057e65df5e3939a6427e80e