Skip to content

Conversation

@italomatos
Copy link
Contributor

Use the more idiomatic ActiveRecord ids method instead of pluck(:id) across controllers and models. The ids method is more readable and explicitly conveys the intent to retrieve primary key values.

Changes:

  • BoardsController#edit: Use @board.users.ids
  • Board::Storage: Use cards.ids, Comment.where().ids, and ActionText::RichText.where().ids
  • User::Accessor: Use account.boards.all_access.ids

This change improves code clarity while maintaining the same functionality.

Use the more idiomatic ActiveRecord ids method instead of pluck(:id)
across controllers and models. The ids method is more readable and
explicitly conveys the intent to retrieve primary key values.

Changes:
- BoardsController#edit: Use @board.users.ids
- Board::Storage: Use cards.ids, Comment.where().ids, and ActionText::RichText.where().ids
- User::Accessor: Use account.boards.all_access.ids

This change improves code clarity while maintaining the same functionality.
Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

Thanks @italomatos

@jorgemanrubia jorgemanrubia merged commit ffb9847 into basecamp:main Jan 5, 2026
5 checks passed
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.

2 participants