I have an app where I’m using ActiveRecord directly, i.e. not the usual
Rails framework. When I instantiate the app I immediately get a few
warnings:
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/vendor/simp
le.rb:74: warning: already initialized constant Messages
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/vendor/simp
le.rb:274: warning: already initialized constant
TRANSACTION_SIMPLE_VERSION
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/vendor/simp
le.rb:635: warning: already initialized constant TRANSACTION_CHECKPOINT
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/vendor/simp
le.rb:636: warning: already initialized constant SKIP_TRANSACTION_VARS
I realize that these are ok to ignore, but I’m packaging this app up for
deployment to production and I’d prefer it to be a little cleaner,
especially since I will be generating my own output logfile. Is there a
good way to turn those off? Will I be doing the rough equivalent of
redirecting stderr to /dev/null just long enough for those to go away
and then turning it back on so I can spit out my own errors if and when
I need to?
D