Convert Rails.version to string before comparing.
 terrible hackery for rails 4 compat