Skip to content

Improve config.database_names example using #pluck#30

Merged
bradrobertson merged 1 commit into
influitive:developmentfrom
aeseducation:patch-1
Dec 20, 2012
Merged

Improve config.database_names example using #pluck#30
bradrobertson merged 1 commit into
influitive:developmentfrom
aeseducation:patch-1

Conversation

@codeodor
Copy link
Copy Markdown
Contributor

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.

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
Improve config.database_names example using #pluck
@bradrobertson bradrobertson merged commit 0e461ca into influitive:development Dec 20, 2012
@bradrobertson
Copy link
Copy Markdown
Contributor

good one, thx!

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