Rails 4 upgrade WIP.