Add .to_s to Rails.version for Rails 4 compatibility

Enables the gem to be used in Rails 4