Skip to content

Instantly share code, notes, and snippets.

@dpickett
Created November 21, 2008 20:10
Show Gist options
  • Save dpickett/27602 to your computer and use it in GitHub Desktop.
Save dpickett/27602 to your computer and use it in GitHub Desktop.
Dir.chdir "#{RAILS_ROOT}/app/models/" do
Dir["**/*.rb"].each do |filename|
open(filename) do |file|
begin
if file.grep(/^\s+is_indexed/).any?
filename = filename[0..-4]
begin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment