Add .to_s to Rails.version for Rails 4 compatibility