hacking in Rails 4 support