[Nitro] arrgghhhh
Robert Mela
rmela at rcn.com
Sat Jul 21 16:50:05 EDT 2007
I remember the old Lint quizzes ( "What's wrong with this C program?")
in Dr. Dobbs in the '90s.
So, in that spirit: What's wrong with this code?
if defined?(Og) and Og.respond_to?(:manager)
# THINK: don't allways force this.
require "raw/model/enchant"
for m in Og.manager.models
m.send(:include, Enchant)
end
end
It's in application.rb from a fresh darcs get I did today.
I think I've reported & patched this one before -- or maybe it was a
similar bug elsewhere...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rmela.vcf
Type: text/x-vcard
Size: 160 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20070721/b6a5241c/attachment.vcf
More information about the Nitro-general
mailing list