[WIP] Hacky fix to begin Rails 4 compatibility. Still errors out.