sed find and replace

Currently in the middle of a rails 3 upgrade. Here’s a quick one line fix with sed to replace all named_scope to scope due to deprecation

find . -name *.rb -type f -exec sed -i 's/named_scope/scope/g' {} \;