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

Refactor: separate controller actions for separate personal key views #1310

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

jessieay
Copy link
Contributor

@jessieay jessieay commented Apr 3, 2017

WHY: We were showing the personal key modal in 3 separate places, but
redirecting users to a single controller action after all 3, which was
kind of confusing.

@jessieay jessieay force-pushed the jy-personal-key-controller-refactor branch from 497593e to 4285dff Compare April 3, 2017 19:18
*WHY**: We were showing the personal key modal in 3 separate places, but
redirecting users to a single controller action after all 3, which was
kind of confusing.
@jessieay jessieay changed the title Refactor: separate controller actions personal keys Refactor: separate controller actions for separate personal key views Apr 3, 2017
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

if current_user.password_reset_profile.present?
reactivate_profile_path
else
profile_path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC says this is not tested.

Copy link
Contributor

@monfresh monfresh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm % comment

@jessieay jessieay merged commit a6300d5 into master Apr 4, 2017
@jessieay jessieay deleted the jy-personal-key-controller-refactor branch April 4, 2017 20:30
@jessieay
Copy link
Contributor Author

jessieay commented Apr 4, 2017

@monfresh darn missed that comment before merging (I thought I refreshed the tab and only saw comments from Zach...but anyway, will add a test for that line in a follow up PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants