[ActiveRecord] bug in latest release?

rubyonrails-c4f1mTqwXZkdnm+yROfE0A@public.gmane.org
2004-11-25T18:38:02Z

Sorry to repost this, but I think the Subject was misleading.
This actually pertains to ActiveRecord only.

Hi

I updated gem rails today and saw that rails had an update.
With the new edition, I get a warning statement printed
that was not in the two earlier versions.
(No message with either:
  require_gem ''activerecord'', "= 1.0.0"
  require_gem ''activerecord'', "= 1.0.0.20041114"
)

The code still works, but the warning makes no sense.
Plus, it cannot be turned of just by skipping the ''-w''
flag on the shebang line.

The two tables I have are:

  CREATE TABLE `people` (
    `id` int(11) NOT NULL auto_increment,
    `name` varchar(20) NOT NULL default ''"'',
    PRIMARY KEY  (`id`)
  ) TYPE=MyISAM;

  CREATE TABLE `pets` (
    `id` int(11) NOT NULL auto_increment,
    `name` varchar(20) default NULL,
    `kind` varchar(30) default NULL,
    `person_id` int(11) default NULL,
    PRIMARY KEY  (`id`)
  ) TYPE=MyISAM;

The  error is caused by the following:

  class Person < ActiveRecord::Base
    has_many :pets
  end
  # prints
  # Person failed to require Pet

  class Pet < ActiveRecord::Base
    belongs_to :person
  end
  # prints
  # Pet failed to require Person

Am I missing something?

--
Jim Freeze
Code Red. Code Ruby
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails

--
Jim Freeze
Code Red. Code Ruby