-
Notifications
You must be signed in to change notification settings - Fork 4
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
Assign mentor to club when joining team #5308
base: qa
Are you sure you want to change the base?
Conversation
f5b8312
to
8f8f219
Compare
@@ -10,10 +10,10 @@ class Chapter < ActiveRecord::Base | |||
has_one :legal_contact, dependent: :destroy | |||
has_one :chapter_program_information, dependent: :destroy | |||
|
|||
has_many :chapter_account_assignments, as: :chapterable, class_name: "ChapterableAccountAssignment" | |||
has_many :accounts, through: :chapter_account_assignments | |||
has_many :chapterable_account_assignments, as: :chapterable, class_name: "ChapterableAccountAssignment" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this was (or is going to be) updated in the refactor work. I updated this association to match the chapterable account assignment association in the club model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, nice naming alignment! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't try locally, but looks good to me! 👍 🎉 🚢
Refs #5246
This PR updates the mentor invite/join team flow so they can also be assigned to a club