All pastes #802266 Raw Edit

Anonymous

public ruby v1 · immutable
#802266 ·published 2007-11-30 01:01 UTC
rendered paste body
# rake ultrasphinx:configure containsDir.chdir "#{RAILS_ROOT}/app/models/" do  Dir["**/*.rb"].each do |filename|    open(filename) do |file|       begin        if file.grep(/is_indexed/).any?          filename = filename[0..-4]          begin                            File.basename(filename).camelize.constantize          rescue NameError => e            filename.camelize.constantize          end        end      rescue Object => e        say "warning: possibly critical autoload error on #{filename}"        say e.inspect        #say e.backtrace.join("\n") if RAILS_ENV == "development"      end    end   endend# it raises:Warning: possibly critical autoload error on article<LoadError: Expected /data/ripenow/releases/20071130002243/app/models/article.rb to define Article># but ONLY on staging, not locally .... any idea?