In [3169], a change was made to enable warnings on the first load of a file in dev mode. Seems to result in a LOT of warnings from within Rails, particularly ActiveRecord (see below for a sample). If the "on first load only" part not working? Is there a way to make AR warnings-safe? ./vendor/rails/activerecord/lib/active_record/base.rb:747: warning: instance variable @columns not initialized ./vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:7: warning: instance variable @needs_verification not initialized ./vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:7: warning: instance variable @needs_verification not initialized ./vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:7: warning: instance variable @needs_verification not initialized ./vendor/rails/activerecord/lib/active_record/base.rb:747: warning: instance variable @columns not initialized ./vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:7: warning: instance variable @needs_verification not initialized ./vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:7: warning: instance variable @needs_verification not initialized ./vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:7: warning: instance variable @needs_verification not initialized ./vendor/rails/activerecord/lib/active_record/base.rb:747: warning: instance variable @columns not initialized
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 24, 2005, at 12:06 AM, Michael Schoen wrote:> In [3169], a change was made to enable warnings on the first load > of a file in dev mode. Seems to result in a LOT of warnings from > within Rails, particularly ActiveRecord (see below for a sample). > > If the "on first load only" part not working? Is there a way to > make AR warnings-safe?The "on first load only" works. Getting AR warnings-safe will take more work. Check out the other [3169] thread :/ I think since this bothers enough people running on trunk, I will disable it (if false, ha!) until I have enough of the warnings cleaned up. jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDhh/7AQHALep9HFYRAtyUAJ9lwy8gjPzsRf5uGurK2AHvXK7sawCgpd5f /hkTQhBNHroArKN6I/JsDqM=dfvO -----END PGP SIGNATURE-----