Skip to content

Instantly share code, notes, and snippets.

@asmega
Created July 31, 2011 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asmega/1116740 to your computer and use it in GitHub Desktop.
Save asmega/1116740 to your computer and use it in GitHub Desktop.
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