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

Set User#zooniverse_id for panoptes-only users #1026

Merged
merged 1 commit into from
Jun 25, 2015

Conversation

parrish
Copy link
Contributor

@parrish parrish commented Jun 25, 2015

No description provided.

@@ -53,6 +53,7 @@ class User < ActiveRecord::Base
before_validation :setup_unsubscribe_token, on: [:create]
before_validation :update_ouroboros_created
before_save :update_ouroboros_created
after_create :set_zooniverse_id
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume we don't want to add this to migrated users.

Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't look like it will since it happens with the ||=

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep. Just panoptes users that don't have a zooniverse_id

@camallen
Copy link
Contributor

LGTM

edpaget added a commit that referenced this pull request Jun 25, 2015
Set User#zooniverse_id for panoptes-only users
@edpaget edpaget merged commit 3681295 into zooniverse:master Jun 25, 2015
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.

3 participants