Fix Devise token reset issue with Rails 4