Skip to content

Instantly share code, notes, and snippets.

@asmega
Created Jul 31, 2011
Embed
What would you like to do?
find and replace with sed for rails 3 upgrade on named_scopes
find . -name *.rb -type f -exec sed -i 's/named_scope/scope/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment