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

User course enrollments can be created by a combination of ID and ema… #15866

Merged
merged 2 commits into from
Jun 15, 2017

Conversation

mehalshah
Copy link
Contributor

…il addresses

@mehalshah mehalshah requested a review from aoby June 14, 2017 22:31
user_emails.each do |email|
user = User.find_by_email_or_hashed_email(email)
user_emails.each do |user_key|
user = user_key =~ /^\d+$/ ? User.find(user_key) : User.find_by_email_or_hashed_email(user_key)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename the param also to user_keys instead of user_emails, and add a function description with @param info

Copy link
Contributor

@aoby aoby left a comment

Choose a reason for hiding this comment

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

LGTM, with one suggestion

@mehalshah mehalshah merged commit 3aec57f into staging Jun 15, 2017
@davidsbailey davidsbailey deleted the user_course_enrollments_by_id branch January 17, 2018 18:01
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.

None yet

2 participants