On Wed, 19 Jul 2006 19:13:15 -0400, "Kyle Heon" <[EMAIL PROTECTED]> wrote: > Recently I've noticed that when firing up my Typo site for development > there are a series of warnings. The errors are listed below: > > /home/kyle/ror/typo/config/../lib/spam_protection.rb:3: warning: already > initialized constant IP_RBLS > /home/kyle/ror/typo/config/../lib/spam_protection.rb:4: warning: already > initialized constant HOST_RBLS > /home/kyle/ror/typo/config/../lib/spam_protection.rb:5: warning: already > initialized constant SECOND_LEVEL > > What can I do to prevent these warnings?
Well a quick way is to put 'unless defined?(CONST)' after each line in spam_protection.rb. ie/ IP_RBLS = [ 'opm.blitzed.us', 'bsb.empty.us' ] unless defined?(IP_RBLS) It might be an idea to work out why this file is being required multiple times, though. Nick _______________________________________________ Typo-list mailing list [email protected] http://rubyforge.org/mailman/listinfo/typo-list
