2

Rails 4にアップグレードした後、問題が発生しました

resource.pending_reconfirmation?

登録#編集ビューには次のものがあります:

  - if devise_mapping.confirmable? && resource.pending_reconfirmation?
    %div
      Currently waiting confirmation for: #{resource.unconfirmed_email}.
      %br
      Please click the link in the email to confirm
  .ruler

それはdevise_mapping.confirmableのようですか?== true ですが、メールを変更した直後は resource.pending_reconfirmation? false を保持します。

なぜこれが起こっているのですか?また、解決方法は?

4

1 に答える 1