WIP for cequel to be rails 4 compliant