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

Improve config.database_names example using #pluck #30

Merged
merged 1 commit into from Dec 20, 2012

Conversation

Projects
None yet
2 participants
@codeodor
Contributor

codeodor commented Dec 20, 2012

ActiveRecord provides #pluck as a better way to get all the values from one column than Customer.select(:database_name).map(&:database_name), so I changed the README to use it instead.

Improve config.database_names example using #pluck
ActiveRecord provides #pluck as a better way to get all the values from one column than Customer.select(:database_name).map(&:database_name), so I changed the README to use it instead.

bradrobertson added a commit that referenced this pull request Dec 20, 2012

Merge pull request #30 from codeodor/patch-1
Improve config.database_names example using #pluck

@bradrobertson bradrobertson merged commit 0e461ca into influitive:development Dec 20, 2012

1 check passed

default The Travis build passed
Details
@bradrobertson

This comment has been minimized.

Show comment
Hide comment
@bradrobertson

bradrobertson Dec 20, 2012

Contributor

good one, thx!

Contributor

bradrobertson commented Dec 20, 2012

good one, thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment