Skip to content

Add ActiveRecord::Base#ids - Close #5812 #6091

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

Merged
merged 1 commit into from
Apr 30, 2012
Merged

Conversation

ahawkins
Copy link

This patch adds a new method for plucking all the IDs from a relation. This is useful when you need ID's for API's.

Original issue here: #5812

wycats added a commit that referenced this pull request Apr 30, 2012
Add ActiveRecord::Base#ids - Close #5812
@wycats wycats merged commit 69c2307 into rails:master Apr 30, 2012
pixeltrix added a commit that referenced this pull request Apr 30, 2012
1. ActiveRecord::Base is not ActiveRecord::Relation
2. The order of records from an SQL query is uncertain without an ORDER clause
3. Run your own tests when submitting a pull request
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.

4 participants