Created
April 25, 2022 17:09
-
-
Save bandogora/a762f3a5d200ecc1e2c5f55df8206842 to your computer and use it in GitHub Desktop.
Replace all Rails instances of `.count` with `.size`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -not -path './db/*' -iregex '.*.\(rb\|haml\|erb\)' -exec sed -ri 's/(\.count)/\.size/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment