Quick and dirty Rails 4 support.