Fixes the error brought by devise gem update