Am 14.11.2007 um 12:11 schrieb Michael Kastner:
DEPRECATION WARNING: The inferred foreign_key name will change in Rails 2.0 to use the association name instead of its class name when they differ. When using :class_name in belongs_to, use the :foreign_key option to explicitly set the key name to avoid problems in the transition. See http://www.rubyonrails.org/ deprecation for details. (called from acts_as_versioned at (eval):3)


Vielleicht wäre das der Zeitpunkt, um über eine Änderung nachzudenken?

Ich mag die deprecation warnings, da sieht zumindest dass sich was bewegt.
Die Warnung scheint mir aber übertrieben vorsichtig zu sein, zumindest
hab ich den Source des Plugins durchsucht und bei dem einen
belongs_to (line 228) ist der :foreign_key gesetzt.

Lustig dass belongs_to auf der website mit den deprecation warnings gar nicht
aufgeführt ist.

Aber danke für's testen, ich bin ja zu faul für...

ciao, tom
--
Thomas R. "TomK32" Koll <> http://tomk32.de <> http://ananasblau.de
just a geek trying to change the world



_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an