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

Add accounts association to the project model #1535

Merged
merged 1 commit into from May 8, 2024
Merged

Conversation

enescakir
Copy link
Member

Earlier, I implemented user_ids method to retrieve the list of user ids associated with a project. This was during my early days. Now, we can use the Sequel method to obtain project users, which is more practical.

This method is also beneficial for operational processes. I often found myself using Account[project.user_ids.first] to access the users.

Copy link
Member

@byucesoy byucesoy left a comment

Choose a reason for hiding this comment

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

YES! ❤️

routes/api/project.rb Outdated Show resolved Hide resolved
Earlier, I implemented `user_ids` method to retrieve the list of user
ids associated with a project. This was during my early days. Now, we
can use the Sequel method to obtain project users, which is more
practical.

This method is also beneficial for operational processes. I often found
myself using `Account[project.user_ids.first]` to access the users.
@enescakir enescakir merged commit aefaa6c into main May 8, 2024
6 checks passed
@enescakir enescakir deleted the project-accounts branch May 8, 2024 11:54
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants