Skip to content

Instantly share code, notes, and snippets.

@asmega
Created July 31, 2011 12:11
Show Gist options
  • Select an option

  • Save asmega/1116740 to your computer and use it in GitHub Desktop.

Select an option

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