Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

メールアドレス認証部分のリファクタリング #19

Merged
merged 4 commits into from
Oct 8, 2016

Conversation

kaekasui
Copy link
Contributor

@kaekasui kaekasui commented Oct 8, 2016

対応理由

models/user.rbが100行を越えようとしており、
update_email_by(token)メソッドでリファクタリングできそうだったので対応

対応内容

  • メールアドレス認証の完了(つまり、対象ユーザーのnew_emailからemailにメールアドレスを移動・登録)を行う一連の処理をEmailUpdatorに切り出し、更新メソッドauthorize_new_emailのみに変更しました
  • #authorize_new_emailのテストを追加しました

補足

対応中に発見したバグがありました。別件で対応します。issue #20

@kaekasui kaekasui merged commit 5d4764d into master Oct 8, 2016
@kaekasui kaekasui deleted the refactor-email-updator branch October 8, 2016 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant