Fix emails token after upgrading to Rails 4