Spam protection warnings when starting up Mongrel

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
/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
/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?

Thanks.

Kyle H.
[email protected]
www.kyleheon.com

On Wed, 19 Jul 2006 19:13:15 -0400, “Kyle H.” [email protected]
wrote:

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs