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

[Refactoring] Replace .count and .length with .size for collections #757

Merged
merged 2 commits into from
Jul 2, 2015

Conversation

CjayBillones
Copy link
Contributor

Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections as specified by @Skud in #566

Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.

Fix error in refactoring

Reverted some .size into .count
@pozorvlak
Copy link
Member

Thanks! The code changes look fine, but you've broken a test, which you can run with the command

rspec ./spec/models/crop_spec.rb:72

Please fix it, and add yourself to CONTRIBUTORS.md.

@CjayBillones
Copy link
Contributor Author

@pozorvlak I finished fixing the test. :) I added myself in the contributors list in another merge pull request that you've checked. #753

pozorvlak added a commit that referenced this pull request Jul 2, 2015
[Refactoring] Replace .count and .length with .size for collections
@pozorvlak pozorvlak merged commit 45c0adb into Growstuff:dev Jul 2, 2015
@CjayBillones CjayBillones deleted the code-refactoring branch July 10, 2015 05:02
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