fix devise for rails 4