Work on compatibility with devise and orm_adapter