WIP: Rails 4 support.